From 356bbfc75df0d6575dc09289b1bc584bbb74e619 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 16 Feb 2015 22:26:15 -0800 Subject: [PATCH] build org files --- emacs_el/configuration/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5