Fossil SCM

add .PHONY target to makefile, this makes "make test" work even though there already is a directory named "test"

jan.nijtmans 2012-09-10 18:15 trunk
Commit ffcdfadbda404d9eadd6784db526859fb206d256
--- src/main.mk
+++ src/main.mk
@@ -1088,5 +1088,12 @@
10881088
10891089
10901090
$(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
10911091
$(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
10921092
1093
+#
1094
+# The list of all the targets that do not correspond to real files. This stops
1095
+# 'make' from getting confused when someone makes an error in a rule.
1096
+#
1097
+
1098
+.PHONY: all install test clean
1099
+
10931100
--- src/main.mk
+++ src/main.mk
@@ -1088,5 +1088,12 @@
1088
1089
1090 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1091 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
1092
 
 
 
 
 
 
 
1093
--- src/main.mk
+++ src/main.mk
@@ -1088,5 +1088,12 @@
1088
1089
1090 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1091 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
1092
1093 #
1094 # The list of all the targets that do not correspond to real files. This stops
1095 # 'make' from getting confused when someone makes an error in a rule.
1096 #
1097
1098 .PHONY: all install test clean
1099
1100
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -303,10 +303,17 @@
303303
304304
set opt {}
305305
writeln {
306306
$(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
307307
$(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
308
+
309
+#
310
+# The list of all the targets that do not correspond to real files. This stops
311
+# 'make' from getting confused when someone makes an error in a rule.
312
+#
313
+
314
+.PHONY: all install test clean
308315
}
309316
310317
close $output_file
311318
#
312319
# End of the main.mk output
313320
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -303,10 +303,17 @@
303
304 set opt {}
305 writeln {
306 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
307 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
 
 
 
 
 
 
 
308 }
309
310 close $output_file
311 #
312 # End of the main.mk output
313
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -303,10 +303,17 @@
303
304 set opt {}
305 writeln {
306 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
307 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE
308
309 #
310 # The list of all the targets that do not correspond to real files. This stops
311 # 'make' from getting confused when someone makes an error in a rule.
312 #
313
314 .PHONY: all install test clean
315 }
316
317 close $output_file
318 #
319 # End of the main.mk output
320

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button