X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2FMakefile;h=74f73bc4c1b55dfbd3220242c45080590cd13eff;hb=eaf7e11775004ebf863636b3fe8569fbcb8449b2;hp=fad2b3df27193d99047ed05b2df5de6bf0ebbe52;hpb=356bbfc75df0d6575dc09289b1bc584bbb74e619;p=lib.git diff --git a/emacs_el/configuration/Makefile b/emacs_el/configuration/Makefile index fad2b3d..74f73bc 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 +LIB_PATH=-L . -L .. -L ../helm + all: $(ELC_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