summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2005-04-17 17:31:06 +0200
committerMichael Brown2005-04-17 17:31:06 +0200
commit04a0de1c928578fca1e29b11366676d0c5712f24 (patch)
tree2147c98c551d81120b9354ae175f4bd6cb4c6c62 /src/Makefile.housekeeping
parentFirst version (diff)
downloadipxe-04a0de1c928578fca1e29b11366676d0c5712f24.tar.gz
ipxe-04a0de1c928578fca1e29b11366676d0c5712f24.tar.xz
ipxe-04a0de1c928578fca1e29b11366676d0c5712f24.zip
Generate phony targets, so that we don't get screwed by missing config
header files.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index ea1606a7..92a5c528 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -104,7 +104,8 @@ endef
define obj_template
@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) \
- -M $(1) -MT "$(4)_DEPS" | tr : = >> $(2)
+ -M $(1) -MT "$(4)_DEPS" -MG -MP | \
+ sed 's/$(4)_DEPS[[:space:]]*:/$(4)_DEPS =/' >> $(2)
@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
'\n\t$$(RULE_$(3))\n' \
'\nBOBJS += $$(BIN)/$(4).o\n' \