Browse Source

use batch-byte-recompile-directory instead of batch-byte-compile

	* lisp/Makefile: use batch-byte-recompile-directory instead of
	batch-byte-compile; remove pattern rule for compiling single file
	from source
	* lisp/Makefile: add compile-dirty to list of phony targets
Achim Gratz 13 years ago
parent
commit
510a51310b
1 changed files with 4 additions and 8 deletions
  1. 4 8
      lisp/Makefile

+ 4 - 8
lisp/Makefile

@@ -1,3 +1,4 @@
+.SUFFIXES:	# we don't need default suffix rules
 ifeq ($(MAKELEVEL), 0)
   $(error This make needs to be started as a sub-make from the toplevel directory.)
 endif
@@ -6,11 +7,12 @@ LISPO = org-install.el
 LISPF = $(subst $(LISPO),,$(wildcard *.el))
 LISPC = $(LISPF:%el=%elc)
 
-.PHONY:		all autoloads compile install clean cleanall clean-install
+.PHONY:		all compile compile-dirty autoloads install clean cleanall clean-install
 
 all \
 compile \
-compile-dirty:	$(LISPC)
+compile-dirty:
+	$(BATCH) --eval '(batch-byte-recompile-directory 0)'
 
 autoloads:	$(LISPO)
 
@@ -38,9 +40,3 @@ cleanall:
 clean-install:
 	if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
 	$(RM) $(lispdir)/org*.el* $(lispdir)/ob*.el*
-
-.SUFFIXES:	# we don't need default suffix rules
-.SUFFIXES:	.el .elc
-
-.el.elc:
-	$(ELC) $<