changeset 16912:44afc0b3c741

(stamp-oldxmenu): New target. (temacs): Depend on stamp-oldxmenu, not on ${OLDXMENU}.
author Richard M. Stallman <rms@gnu.org>
date Tue, 21 Jan 1997 05:26:30 +0000
parents 123d19079d9f
children 753ef587f1f4
files src/Makefile.in
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.in	Tue Jan 21 04:43:45 1997 +0000
+++ b/src/Makefile.in	Tue Jan 21 05:26:30 1997 +0000
@@ -760,7 +760,7 @@
 #define MAKE_PARALLEL
 #endif
 
-temacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE prefix-args
+temacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE prefix-args
 	$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${ALL_LDFLAGS}) \
     -o temacs ${STARTFILES} ${obj} ${otherobj}  \
     OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
@@ -807,6 +807,13 @@
 
 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS)
 
+/* We use stamp-xmenu with these two deps
+   to both ensure that lwlib gets remade based on its dependencies
+   in its own makefile,
+   and remake temacs if lwlib gets changed by this.  */
+stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) 
+	touch stamp-oldxmenu
+
 #ifdef USE_X_TOOLKIT
 $(OLDXMENU): really-lwlib