aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2005-04-16 23:47:47 +0000
committerMichael Brown <mcb30@etherboot.org>2005-04-16 23:47:47 +0000
commitae36de3d8059fa34ee9df8cad160d7895b43782b (patch)
treeaf5df559bc1718957ccf71963dc28ee6bb01e315 /src/Makefile.housekeeping
parent9c814cb1234170c447b0b4e7b7d78adc721d29f4 (diff)
downloadipxe-ae36de3d8059fa34ee9df8cad160d7895b43782b.tar.gz
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.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 378435fab..ea1606a7f 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
#