Add creating config files from snippets to build system.

This commit is contained in:
Ralph Lange
2015-10-09 17:28:46 +02:00
parent 96ee2cd00c
commit 830704021d

View File

@@ -315,6 +315,22 @@ $(MODNAME): %$(MODEXT): %$(EXE)
@$(RM) $@
$(LINK.mod)
#---------------------------------------------------------------
# Assembled files (from snippets)
COMMON_ASSEMBLE_FROM_SNIPPETS_ += $(addprefix $(COMMON_DIR)/,$(COMMON_ASSEMBLE_FROM_SNIPPETS))
$(COMMON_ASSEMBLE_FROM_SNIPPETS_): $(COMMON_DIR)/%:
@echo "Assembling common file $@ from snippets"
@$(RM) $(notdir $@)
$(PERL) $(TOOLS)/assembleSnippets.pl -o $(notdir $@) $($(notdir $@)_SNIPPETS)
@$(MV) $(notdir $@) $@
$(ASSEMBLE_FROM_SNIPPETS): %:
@echo "Assembling file $@ from snippets"
@$(RM) $(notdir $@)
$(PERL) $(TOOLS)/assembleSnippets.pl -o $(notdir $@) $($(notdir $@)_SNIPPETS)
#---------------------------------------------------------------
# Automated testing