Permalink
Browse files

Fixed some targets in Makefile

  • Loading branch information...
jwiegley committed Jun 29, 2012
1 parent dda3d8e commit 0377716e6c5c226bd131084c3b78f53600dd29b4
Showing with 4 additions and 2 deletions.
  1. +4 −2 Makefile
View
@@ -5,13 +5,13 @@ SPECIAL = cus-dirs.el autoloads.el
INIT_SOURCE = $(wildcard *.el)
LIB_SOURCE = $(wildcard override/*.el) $(wildcard lib/*.el) \
$(wildcard lisp/*.el) $(wildcard site-lisp/*.el)
-TARGET = $(patsubst %.el,%.elc, $(LIB_SOURCE))
+TARGET = autoloads.elc $(patsubst %.el,%.elc, $(LIB_SOURCE))
EMACS = emacs
EMACS_BATCH = $(EMACS) -Q -batch
MY_LOADPATH = -L . $(patsubst %,-L %,$(DIRS))
BATCH_LOAD = $(EMACS_BATCH) $(MY_LOADPATH)
-all: $(TARGET)
+all: $(SPECIAL) $(TARGET)
for dir in $(DIRS); do \
$(BATCH_LOAD) -f batch-byte-recompile-directory $$dir; \
done
@@ -27,6 +27,8 @@ autoloads.el: Makefile autoloads.in $(LIB_SOURCE)
-f generate-autoloads $(shell pwd)/autoloads.el $(DIRS) \
$(shell find $(DIRS) -maxdepth 1 -type d -print)
+autoloads.elc: autoloads.el
+
%.elc: %.el
$(BATCH_LOAD) -l load-path -f batch-byte-compile $<

0 comments on commit 0377716

Please sign in to comment.