# This makefile tries to build all RPP projects by calling various # Eclipse commands from command line. # # See http://processors.wiki.ti.com/index.php/Projects_-_Command_Line_Build/Create # and https://bugs.eclipse.org/bugs/show_bug.cgi?id=186847 ECLIPSE=/opt/ti/ccsv5/eclipse/eclipse WORKSPACE:=$(shell mktemp --dry-run --tmpdir -d rpp-test-sw-workspace.XXXXXXXXXX) all: rpp-test-sw rm -rf $(WORKSPACE) rpp-test-sw: $(WORKSPACE) $(ECLIPSE) -noSplash -data $(WORKSPACE) -application com.ti.ccstudio.apps.projectImport -ccs.location $(CURDIR)/rpp-test-sw $(ECLIPSE) -noSplash -data $(WORKSPACE) -application com.ti.ccstudio.apps.projectImport -ccs.location $(CURDIR)/rpp-lib $(ECLIPSE) -noSplash -data $(WORKSPACE) -application com.ti.ccstudio.apps.projectBuild -ccs.projects rpp-test-sw # Previous commands do not always return non-zero exit code on build failure - invoke make directly to not miss a potential error $(MAKE) -C $(CURDIR)/rpp-test-sw/Debug all clean: rm -rf $(wildcard $(dir $(WORKSPACE))rpp-test-sw-workspace.*) $(WORKSPACE): mkdir -p $(WORKSPACE) ccs-help: $(WORKSPACE) $(ECLIPSE) -noSplash -data $(WORKSPACE) -application com.ti.ccstudio.apps.projectBuild -ccs.help