Add RULES_TOP and top Makefile definitions to build embedded TOPs (test, examples) as part of the main build

This commit is contained in:
Ralph Lange
2014-02-14 12:28:02 +01:00
parent 2269a5bd66
commit c445368537
2 changed files with 28 additions and 6 deletions

View File

@@ -1,3 +1,16 @@
#RULES_TOP
include $(CONFIG)/RULES_TOP
EMTOPACTIONS += cvsclean realuninstall
distclean: emtop_distclean
emtopDistcleanTargets += $(foreach dir, $(EMBEDDED_TOPS), \
$(dir)$(DIVIDER)emtop_dummy_action)
$(emtopDistcleanTargets) :
$(MAKE) -C $(dirPart) $(EMTOPACTIONS)
emtop_distclean : $(emtopDistcleanTargets)
.PHONY : $(emtopDistcleanTargets)