X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2FMakefile;h=411771e785102962af7030c06d1fc49921491c08;hb=ff52474a76efe7c8e67603938e2cd5fa6f2a8daa;hp=f119086b2ca14fedcd31dedb1a8ea40580bfa916;hpb=383b1b4695d015c1dfc38f811d68b0104a204d04;p=lib.git diff --git a/emacs_el/configuration/Makefile b/emacs_el/configuration/Makefile index f119086..411771e 100644 --- a/emacs_el/configuration/Makefile +++ b/emacs_el/configuration/Makefile @@ -7,22 +7,25 @@ ELC_FILES= EL_FILES= ORG_EL_FILES= ifeq ($(strip $(WHICH_EMACS)),) -ORG_EL_FILES=$(patsubst %.org,%.el,$(wildcard *.org)) -EL_FILES=$(sort $(wildcard *.el) $(ORG_EL_FILES)) -ELC_FILES=$(patsubst %.el,%.elc,$(EL_FILES)) +ORG_EL_FILES=don-configuration.el +ORG_ELC_FILES=don-configuration.elc endif -LIB_PATH=-L . -L .. -L ../helm +LIB_PATH= -all: $(ORG_EL_FILES) +all: $(ORG_ELC_FILES) EMACS=emacs -$(ELC_FILES): %.elc: %.el - $(EMACS) -batch -q -no-site-file $(LIB_PATH) --no-site-file --eval '(byte-recompile-directory "." 0)' +install_packages: install_packages.el + $(EMACS) --batch -q --no-site-file $(LIB_PATH) -l install_packages.el && \ + touch $@ -$(ORG_EL_FILES): %.el: %.org - $(EMACS) -batch -q -no-site-file --visit $< --funcall org-babel-tangle +$(ORG_ELC_FILES): %.elc: %.el install_packages + $(EMACS) --batch -q --no-site-file $(LIB_PATH) $(USE_PACKAGE) --eval "(byte-compile-file \"$<\")" + +$(ORG_EL_FILES): %.el: %.org install_packages + $(EMACS) --batch -q --no-site-file --visit $< --funcall org-babel-tangle clean: