diff src/Makefile.in @ 2055:1523f75dc160

[project @ 1996-04-07 04:05:50 by jwe]
author jwe
date Sun, 07 Apr 1996 04:07:59 +0000
parents 6acfd17972b4
children 424b95481a85
line wrap: on
line diff
--- a/src/Makefile.in	Sun Apr 07 03:45:40 1996 +0000
+++ b/src/Makefile.in	Sun Apr 07 04:07:59 1996 +0000
@@ -166,10 +166,13 @@
 	octave.gperf octave.cc parse.cc lex.cc y.tab.h \
 	$(INCLUDES) $(DLD_SRC) $(SOURCES) $(TEMPLATE_SRC) $(TI_SRC)
 
-all: defaults.h stamp-picdir libraries \
+all: stamp-prereq stamp-picdir libraries \
 	$(OCT_FILES) octave
 .PHONY: all
 
+stamp-prereq: defaults.h
+	touch stamp-prereq
+
 octave: octave.o builtins.o $(DLD_STATIC_OBJ) libraries
 	$(CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o octave \
 	octave.o builtins.o $(DLD_STATIC_OBJ) \
@@ -268,13 +271,13 @@
 
 distclean: clean
 	rm -f Makefile octave .fname so_locations
-	rm -f stamp-picdir stamp-tinst stamp-interp
+	rm -f stamp-picdir stamp-tinst stamp-interp stamp-prereq
 	-rmdir pic
 .PHONY: distclean
 
 maintainer-clean: distclean
-	rm -f tags TAGS y.tab.c y.tab.h y.output yy.lex.c lex.cc \
-	rm -f parse.cc oct-gperf.h stamp-picdir stamp-tinst stamp-interp
+	rm -f tags TAGS y.tab.c y.tab.h y.output yy.lex.c lex.cc parse.cc
+	rm -f oct-gperf.h stamp-picdir stamp-tinst stamp-interp stamp-prereq
 	-rmdir pic
 .PHONY: maintainer-clean
 
@@ -330,6 +333,11 @@
 check: all
 .PHONY: check
 
+# If missing, GNU make attempts to create them in the reverse of the
+# order in which they are listed here.  We rely on that fact to ensure
+# that defaults.h is created before trying to create the .d files.
+# Hmm.  I wonder if we can count on that...
+
 ifndef omit_deps
--include $(MAKEDEPS)
+-include $(MAKEDEPS) stamp-prereq
 endif