소스 검색

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.
Achim Gratz 13 년 전
부모
커밋
465adbdae3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      targets.mk

+ 1 - 0
targets.mk

@@ -12,6 +12,7 @@ INSTSUB         = $(SUBDIRS:%=install-%)
 	autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
 
 compile:	lisp
+	$(MAKE) -C $< clean
 	$(MAKE) -C $< $@
 
 all \