]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/Makefile
stop building helm notes
[lib.git] / emacs_el / Makefile
index c79737ef3cf1a9e84da85f3b29d6e1f3c6fd1186..62296bc1e719edfdee3c711edd2260d99d264951 100644 (file)
@@ -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 org-ref
+LIBDIRS=-L .
+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)