changeset 53941:f381d8277172

* Makefile.in: Fixed the CC Mode recompile kludge so it works when building in a different directory.
author Martin Stjernholm <mast@lysator.liu.se>
date Sat, 14 Feb 2004 18:09:34 +0000
parents 33cf8d1b409d
children 04e3f976ac13
files lisp/Makefile.in
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/Makefile.in	Fri Feb 13 23:44:37 2004 +0000
+++ b/lisp/Makefile.in	Sat Feb 14 18:09:34 2004 +0000
@@ -273,14 +273,17 @@
 # Note that this doesn't create .elc files.  It only recompiles if an
 # .elc is present.
 
-recompile: doit progmodes/cc-mode.elc
+recompile: doit $(lisp)/progmodes/cc-mode.elc
 	$(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp)
 
 # CC Mode uses a compile time macro system which causes a compile time
 # dependency in cc-mode.elc on the macros in cc-langs.el and the
 # version string in cc-defs.el.
-progmodes/cc-mode.elc: progmodes/cc-mode.el progmodes/cc-langs.el progmodes/cc-defs.el
-	$(EMACS) $(EMACSOPT) -f batch-byte-compile progmodes/cc-mode.el
+$(lisp)/progmodes/cc-mode.elc: \
+	$(lisp)/progmodes/cc-mode.el \
+	$(lisp)/progmodes/cc-langs.el \
+	$(lisp)/progmodes/cc-defs.el
+	$(EMACS) $(EMACSOPT) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
 
 # Prepare a bootstrap in the lisp subdirectory.
 #