X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2FMakefile;fp=emacs_el%2FMakefile;h=cfd61b4fb23320b9d376de10b5d9ebc81a491790;hb=9dde3fcba1b4f10fedcb7cf8b981ded46a0f3e43;hp=c79737ef3cf1a9e84da85f3b29d6e1f3c6fd1186;hpb=2cbf93da41b22c16a9cce2359d4b5361ad9c5023;p=lib.git diff --git a/emacs_el/Makefile b/emacs_el/Makefile index c79737e..cfd61b4 100644 --- a/emacs_el/Makefile +++ b/emacs_el/Makefile @@ -8,18 +8,26 @@ ifeq ($(strip $(WHICH_EMACS)),) ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el)) endif -all: $(ELC_FILES) configuration +SUBDIRS= +LIBOPTS=-L . +ifeq ($(strip $(WHICH_EMACS)),) +SUBDIRS=configuration helm org-ref +LIBDIRS=-L . -L helm +endif + + +all: $(ELC_FILES) $(SUBDIRS) EMACS=emacs -configuration: - $(MAKE) -C configuration +$(SUBDIRS): %: + $(MAKE) -C $@ %.elc: %.el - $(EMACS) -q -no-site-file -L . --no-site-file -batch -f batch-byte-compile $<; + $(EMACS) -q -no-site-file $(LIBDIRS) --no-site-file -batch -f batch-byte-compile $<; clean: rm -f *.elc -.PHONY: clean all configuration +.PHONY: clean all $(SUBDIRS)