summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2010-07-14 17:14:29 +0200
committerMichael Brown2010-07-14 18:00:51 +0200
commit4d73b49d6031970aee1f7a3040e36646fc6be2e2 (patch)
tree09afec8f268178ba18483624327950289a38b675 /src/Makefile.housekeeping
parent[build] Mark weak functions noinline (diff)
downloadipxe-4d73b49d6031970aee1f7a3040e36646fc6be2e2.tar.gz
ipxe-4d73b49d6031970aee1f7a3040e36646fc6be2e2.tar.xz
ipxe-4d73b49d6031970aee1f7a3040e36646fc6be2e2.zip
[build] Avoid unnecessary "rm" and "touch" in dependency generation
Speed up dependency generation by omitting the totally unnecessary "rm" and "touch" commands. This reduces the time taken to generate dependencies by around 6%. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index ad15e139..2b244e22 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -466,11 +466,9 @@ define src_template
@$(ECHO) " [DEPS] $(1)"
@$(MKDIR) -p $(dir $(2))
- @$(RM) $(2)
- @$(TOUCH) $(2)
@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \
-Wno-error -M $(1) -MG -MP | \
- sed 's/\.o\s*:/_DEPS =/' >> $(2)
+ sed 's/\.o\s*:/_DEPS =/' > $(2)
@$(ECHO_E) '\n$$(BIN)/$(4).o :' \
'$(1) $$(MAKEDEPS) $$(POST_O_DEPS) $$($(4)_DEPS)' \
'\n\t$$(QM)$(ECHO) " [BUILD] $$@"' \
@@ -815,8 +813,6 @@ define media_template
@$(ECHO) " [MEDIADEPS] $(1)"
@$(MKDIR) -p $(dir $(2))
- @$(RM) $(2)
- @$(TOUCH) $(2)
@$(ECHO_E) '$$(BIN)/%.$(1) : $$(BIN)/%.$(1).zbin' \
'\n\t$$(QM)$(ECHO) " [FINISH] $$@"' \
'\n\t$$(Q)$$(CP) $$< $$@' \