[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user