X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2FMakefile;h=411771e785102962af7030c06d1fc49921491c08;hb=ff52474a76efe7c8e67603938e2cd5fa6f2a8daa;hp=74f73bc4c1b55dfbd3220242c45080590cd13eff;hpb=9c23970f87981689b9e932fd7aa29b66ef1e0a5f;p=lib.git diff --git a/emacs_el/configuration/Makefile b/emacs_el/configuration/Makefile index 74f73bc..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: $(ELC_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: