Fossil SCM
add .PHONY target to makefile, this makes "make test" work even though there already is a directory named "test"
Commit
ffcdfadbda404d9eadd6784db526859fb206d256
Parent
c42408e15b8566b…
2 files changed
+7
+7
+7
| --- src/main.mk | ||
| +++ src/main.mk | ||
| @@ -1088,5 +1088,12 @@ | ||
| 1088 | 1088 | |
| 1089 | 1089 | |
| 1090 | 1090 | $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c |
| 1091 | 1091 | $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o -DCSON_FOSSIL_MODE |
| 1092 | 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 | + | |
| 1093 | 1100 |
| --- 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 |
+7
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -303,10 +303,17 @@ | ||
| 303 | 303 | |
| 304 | 304 | set opt {} |
| 305 | 305 | writeln { |
| 306 | 306 | $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c |
| 307 | 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 | |
| 308 | 315 | } |
| 309 | 316 | |
| 310 | 317 | close $output_file |
| 311 | 318 | # |
| 312 | 319 | # End of the main.mk output |
| 313 | 320 |
| --- 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 |