]> git.donarmstrong.com Git - lib.git/commitdiff
build org files
authorDon Armstrong <don@donarmstrong.com>
Tue, 17 Feb 2015 06:26:15 +0000 (22:26 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 17 Feb 2015 06:26:15 +0000 (22:26 -0800)
emacs_el/configuration/Makefile

index a249abf2bf0c4d920155835e2398dcdda2011411..fad2b3df27193d99047ed05b2df5de6bf0ebbe52 100644 (file)
@@ -5,7 +5,7 @@ WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail")
 
 ELC_FILES=
 ifeq ($(strip $(WHICH_EMACS)),)
-ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el))
+ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el)) $(patsubsts %.org,%.elc,$(wildcard *.el))
 endif
 
 all: $(ELC_FILES)
@@ -15,6 +15,10 @@ EMACS=emacs
 %.elc: %.el
        $(EMACS) -q -no-site-file -L . -L .. --no-site-file -batch -f batch-byte-compile $<;
 
+%.el: %.org
+       $(EMACS) -batch -q -no-site-file --visit $< --funcall org-babel-tangle
+
+
 clean: 
        rm -f *.elc