From ae36de3d8059fa34ee9df8cad160d7895b43782b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 16 Apr 2005 23:47:47 +0000 Subject: [PATCH] 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. --- src/Makefile.housekeeping | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 378435fa..ea1606a7 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -260,10 +260,10 @@ $(BIN)/%.info : # # If it's a debugging version, force a link to take place by making # this target depend on a phony target, and mark the resulting files -# as being older than BLIB, so that any subsequent images will do a -# fresh link. Otherwise, you won't get what you expect when you do -# e.g. "make DEBUG=pci bin/pnic.dsk ; make bin/pnic.dsk ; make -# DEBUG=pci bin/pnic.dsk" +# as being older than BLIB (and prevent them from being deleted), so +# that any subsequent images will do a fresh link. Otherwise, you +# won't get what you expect when you do e.g. "make DEBUG=pci +# bin/pnic.dsk ; make bin/pnic.dsk ; make DEBUG=pci bin/pnic.dsk" # $(BIN)/%.tmp : $(BLIB) $(MAKEDEPS) $(LDSCRIPT) \ $(DEBUG_OBJECTS) $(if $(DEBUG),force_relink) @@ -271,6 +271,7 @@ $(BIN)/%.tmp : $(BLIB) $(MAKEDEPS) $(LDSCRIPT) \ $(DEBUG_OBJECTS) $(BLIB) -o $@ -Map $(BIN)/$*.tmp.map $(if $(DEBUG_OBJECTS),$(TOUCH) -r $(BLIB) -B 2 $@ $(BIN)/$*.tmp.map) .PHONY : force_relink +.SECONDARY : # Show a linker map for the specified target #