diff liboctave/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 53db3b9399f0
line wrap: on
line diff
--- a/liboctave/Makefile.in	Sun Apr 07 03:45:40 1996 +0000
+++ b/liboctave/Makefile.in	Sun Apr 07 04:07:59 1996 +0000
@@ -92,9 +92,12 @@
 
 LIBOCTAVE_DEPEND := $(patsubst %, liboctave.a(%), $(OBJECTS))
 
-all: safe-stat.h safe-lstat.h stamp-picdir liboctave.a stamp-shared
+all: stamp-prereq stamp-picdir liboctave.a stamp-shared
 .PHONY: all
 
+stamp-prereq: safe-stat.h safe-lstat.h
+	touch stamp-prereq
+
 stamp-picdir:
 	if [ -n "$(CXXPICFLAG)" ]; then \
 	  if [ -d pic ]; then true; else mkdir pic ; fi ; \
@@ -187,12 +190,12 @@
 .PHONY: mostlyclean
 
 distclean: clean
-	rm -f Makefile so_locations stamp-picdir stamp-shared
+	rm -f Makefile so_locations stamp-picdir stamp-shared stamp-prereq
 	-rmdir pic
 .PHONY: distclean
 
 maintainer-clean: distclean
-	rm -f tags TAGS stamp-picdir stamp-shared
+	rm -f tags TAGS stamp-picdir stamp-shared stamp-prereq
 	-rmdir pic
 .PHONY: maintainer-clean
 
@@ -204,6 +207,11 @@
 	ln $(DISTFILES) ../`cat ../.fname`/liboctave
 .PHONY: dist
 
+# 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 the safe-stat.h and safe-lstat.h files are 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