Pārlūkot izejas kodu

Need to prevent intermediate targets from being deleted, otherwise the

trick with "touch -B 2" doesn't work because the file that we're
carefully timestamping just gets deleted anyway.
tags/v0.9.3
Michael Brown 19 gadus atpakaļ
vecāks
revīzija
ae36de3d80
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 5
    4
      src/Makefile.housekeeping

+ 5
- 4
src/Makefile.housekeeping Parādīt failu

@@ -260,10 +260,10 @@ $(BIN)/%.info :
260 260
 # 
261 261
 # If it's a debugging version, force a link to take place by making
262 262
 # this target depend on a phony target, and mark the resulting files
263
-# as being older than BLIB, so that any subsequent images will do a
264
-# fresh link.  Otherwise, you won't get what you expect when you do
265
-# e.g. "make DEBUG=pci bin/pnic.dsk ; make bin/pnic.dsk ; make
266
-# DEBUG=pci bin/pnic.dsk"
263
+# as being older than BLIB (and prevent them from being deleted), so
264
+# that any subsequent images will do a fresh link.  Otherwise, you
265
+# won't get what you expect when you do e.g. "make DEBUG=pci
266
+# bin/pnic.dsk ; make bin/pnic.dsk ; make DEBUG=pci bin/pnic.dsk"
267 267
 #
268 268
 $(BIN)/%.tmp : $(BLIB) $(MAKEDEPS) $(LDSCRIPT) \
269 269
 	       $(DEBUG_OBJECTS) $(if $(DEBUG),force_relink)
@@ -271,6 +271,7 @@ $(BIN)/%.tmp : $(BLIB) $(MAKEDEPS) $(LDSCRIPT) \
271 271
 		$(DEBUG_OBJECTS) $(BLIB) -o $@ -Map $(BIN)/$*.tmp.map
272 272
 	$(if $(DEBUG_OBJECTS),$(TOUCH) -r $(BLIB) -B 2 $@ $(BIN)/$*.tmp.map)
273 273
 .PHONY : force_relink
274
+.SECONDARY :
274 275
 
275 276
 # Show a linker map for the specified target
276 277
 #

Notiek ielāde…
Atcelt
Saglabāt