Browse Source

Generate phony targets, so that we don't get screwed by missing config

header files.
tags/v0.9.3
Michael Brown 19 years ago
parent
commit
04a0de1c92
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/Makefile.housekeeping

+ 2
- 1
src/Makefile.housekeeping View File

104
 define obj_template
104
 define obj_template
105
 
105
 
106
 	@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) \
106
 	@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) \
107
-		-M $(1) -MT "$(4)_DEPS" | tr : = >> $(2)
107
+		-M $(1) -MT "$(4)_DEPS" -MG -MP | \
108
+		sed 's/$(4)_DEPS[[:space:]]*:/$(4)_DEPS =/' >> $(2)
108
 	@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
109
 	@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
109
 		 '\n\t$$(RULE_$(3))\n' \
110
 		 '\n\t$$(RULE_$(3))\n' \
110
 		 '\nBOBJS += $$(BIN)/$(4).o\n' \
111
 		 '\nBOBJS += $$(BIN)/$(4).o\n' \

Loading…
Cancel
Save