Explorar el Código

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

header files.
tags/v0.9.3
Michael Brown hace 19 años
padre
commit
04a0de1c92
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/Makefile.housekeeping

+ 2
- 1
src/Makefile.housekeeping Ver fichero

@@ -104,7 +104,8 @@ endef
104 104
 define obj_template
105 105
 
106 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 109
 	@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
109 110
 		 '\n\t$$(RULE_$(3))\n' \
110 111
 		 '\nBOBJS += $$(BIN)/$(4).o\n' \

Loading…
Cancelar
Guardar