X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2FMakefile;h=f119086b2ca14fedcd31dedb1a8ea40580bfa916;hb=72f81743a4a798e3e84892631aa08229e74de27c;hp=fad2b3df27193d99047ed05b2df5de6bf0ebbe52;hpb=356bbfc75df0d6575dc09289b1bc584bbb74e619;p=lib.git diff --git a/emacs_el/configuration/Makefile b/emacs_el/configuration/Makefile index fad2b3d..f119086 100644 --- a/emacs_el/configuration/Makefile +++ b/emacs_el/configuration/Makefile @@ -4,18 +4,24 @@ WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail") ELC_FILES= +EL_FILES= +ORG_EL_FILES= ifeq ($(strip $(WHICH_EMACS)),) -ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el)) $(patsubsts %.org,%.elc,$(wildcard *.el)) +ORG_EL_FILES=$(patsubst %.org,%.el,$(wildcard *.org)) +EL_FILES=$(sort $(wildcard *.el) $(ORG_EL_FILES)) +ELC_FILES=$(patsubst %.el,%.elc,$(EL_FILES)) endif -all: $(ELC_FILES) +LIB_PATH=-L . -L .. -L ../helm + +all: $(ORG_EL_FILES) EMACS=emacs -%.elc: %.el - $(EMACS) -q -no-site-file -L . -L .. --no-site-file -batch -f batch-byte-compile $<; +$(ELC_FILES): %.elc: %.el + $(EMACS) -batch -q -no-site-file $(LIB_PATH) --no-site-file --eval '(byte-recompile-directory "." 0)' -%.el: %.org +$(ORG_EL_FILES): %.el: %.org $(EMACS) -batch -q -no-site-file --visit $< --funcall org-babel-tangle