From: Don Armstrong Date: Tue, 17 Feb 2015 06:26:15 +0000 (-0800) Subject: build org files X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=356bbfc75df0d6575dc09289b1bc584bbb74e619;p=lib.git build org files --- diff --git a/emacs_el/configuration/Makefile b/emacs_el/configuration/Makefile index a249abf..fad2b3d 100644 --- a/emacs_el/configuration/Makefile +++ b/emacs_el/configuration/Makefile @@ -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