summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gratz <Stromeko@Stromeko.DE>2011-09-25 11:17:53 +0200
committerAchim Gratz <Stromeko@Stromeko.DE>2012-04-20 21:04:09 +0200
commit465adbdae35d737246857e7412ab5ca82b8497f4 (patch)
tree7d3dcace2a77a1be68518e10eaac32496786e515
parent236b79da67e46889937e048cf514a6adeff174a9 (diff)
downloadorg-mode-465adbdae35d737246857e7412ab5ca82b8497f4.tar.gz
Always "make clean" for lisp files before compiling them
* Makefile: prepend "make clean" in lisp directory when compiling Rationale: Emacs prefers the compiled lisp files even if the source is newer. In case of circular dependencies or if the dependencies file is not correct, the compiled files might not reflect the sources. Since there is no canonical way to remove all compiled files which are stale (it can be hacked, but it is really ugly), it seems more prudent to just always remove the compiled files before starting the compilation. Most folks already already do that anyway.
-rw-r--r--targets.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/targets.mk b/targets.mk
index b35cfa1..d61b6e2 100644
--- a/targets.mk
+++ b/targets.mk
@@ -12,6 +12,7 @@ INSTSUB = $(SUBDIRS:%=install-%)
autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
compile: lisp
+ $(MAKE) -C $< clean
$(MAKE) -C $< $@
all \