4 WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail")
9 ifeq ($(strip $(WHICH_EMACS)),)
10 ORG_EL_FILES=$(patsubst %.org,%.el,$(wildcard *.org))
11 EL_FILES=$(sort $(wildcard *.el) $(ORG_EL_FILES))
12 ELC_FILES=$(patsubst %.el,%.elc,$(EL_FILES))
15 LIB_PATH=-L . -L .. -L ../helm
21 $(ELC_FILES): %.elc: %.el
22 $(EMACS) -batch -q -no-site-file $(LIB_PATH) --no-site-file --eval '(byte-recompile-directory "." 0)'
24 $(ORG_EL_FILES): %.el: %.org
25 $(EMACS) -batch -q -no-site-file --visit $< --funcall org-babel-tangle