[m-rev.] diff: fix bug with --use-subdirs

Simon Taylor stayl at cs.mu.OZ.AU
Sun Jul 8 21:02:56 AEST 2001



Estimated hours taken: 0.1
Branches: main

scripts/Mmake.rules:
	Fix a bug in my change to add timestamps for `.c' files.
	Create the subdirectories for the `.c_date', `.il_date', 
	`.s_date' and `.pic_s_date' files when running `mmake depend'
	to work around a GNU make bug. (This duplicates similar code
	for `.date' etc. files).

	Fix a typo in the rules for `.pic_s' files.

Index: Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.99
diff -u -u -r1.99 Mmake.rules
--- Mmake.rules	2001/07/07 05:50:51	1.99
+++ Mmake.rules	2001/07/07 21:10:18
@@ -96,6 +96,11 @@
 	-[ -d Mercury/date0s ] || mkdir Mercury/date0s
 	-[ -d Mercury/date3s ] || mkdir Mercury/date3s
 	-[ -d Mercury/optdates ] || mkdir Mercury/optdates
+	-[ -d Mercury/trans_opt_dates ] || mkdir Mercury/trans_opt_dates
+	-[ -d Mercury/c_dates ] || mkdir Mercury/c_dates
+	-[ -d Mercury/il_dates ] || mkdir Mercury/il_dates
+	-[ -d Mercury/s_dates ] || mkdir Mercury/s_dates
+	-[ -d Mercury/pic_s_dates ] || mkdir Mercury/pic_s_dates
 endif
 
 # beware the code for `%.depend' and `%.dep'/`%.dv' is duplicated
@@ -108,6 +113,11 @@
 	-[ -d Mercury/date0s ] || mkdir Mercury/date0s
 	-[ -d Mercury/date3s ] || mkdir Mercury/date3s
 	-[ -d Mercury/optdates ] || mkdir Mercury/optdates
+	-[ -d Mercury/trans_opt_dates ] || mkdir Mercury/trans_opt_dates
+	-[ -d Mercury/c_dates ] || mkdir Mercury/c_dates
+	-[ -d Mercury/il_dates ] || mkdir Mercury/il_dates
+	-[ -d Mercury/s_dates ] || mkdir Mercury/s_dates
+	-[ -d Mercury/pic_s_dates ] || mkdir Mercury/pic_s_dates
 endif
 
 # The `.doit' files are helpful when using Prolog.
@@ -182,7 +192,7 @@
 $(ss_subdir)%.s : $(s_dates_subdir)%.s_date
 	@:
 
-$(ss_subdir)%.pic_s : $(s_dates_subdir)%.s_date
+$(ss_subdir)%.pic_s : $(pic_s_dates_subdir)%.pic_s_date
 	@:
 
 $(s_dates_subdir)%.s_date : %.m

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list