]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/Makefile
fix missing ) for org-mode
[lib.git] / emacs_el / Makefile
index b85c3cc588282a4e76dfcfe70235d1281a728f62..cfd61b4fb23320b9d376de10b5d9ebc81a491790 100644 (file)
@@ -8,15 +8,26 @@ ifeq ($(strip $(WHICH_EMACS)),)
 ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el))
 endif
 
-all: $(ELC_FILES)
+SUBDIRS=
+LIBOPTS=-L .
+ifeq ($(strip $(WHICH_EMACS)),)
+SUBDIRS=configuration helm org-ref
+LIBDIRS=-L . -L helm
+endif
+
+
+all: $(ELC_FILES) $(SUBDIRS)
 
 EMACS=emacs
 
+$(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
+.PHONY: clean all $(SUBDIRS)