[make] add new TESTANDREPLACEFILE macro

Split the MAKECONFIGHEADER macro into the part that generates
the header and the part that tests if you should replace the
target file with the generated one.
This commit is contained in:
Travis Geiselbrecht
2013-07-31 11:47:03 -07:00
parent 7ee9e78c07
commit 7e8b333b97
3 changed files with 22 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ MODULE_CONFIG := $(MODULE_BUILDDIR)/module_config.h
$(MODULE_CONFIG): MODULE_DEFINES:=$(MODULE_DEFINES)
$(MODULE_CONFIG): configheader
$(call MAKECONFIGHEADER,$@,MODULE_DEFINES)
@$(call MAKECONFIGHEADER,$@,MODULE_DEFINES)
GENERATED += $(MODULE_CONFIG)