# See http://processors.wiki.ti.com/index.php/Projects_-_Command_Line_Build/Create
# and https://bugs.eclipse.org/bugs/show_bug.cgi?id=186847
-include rpp-lib/common.mk
-
all: rpp-test-sw
$(call rmdir,$(TMP_WORKSPACE))
+RELEASE_PREFIX = rpp-test-sw
+include rpp-lib/common.mk
+
rpp-test-sw: $(TMP_WORKSPACE)
$(ECLIPSE) -noSplash -data $(TMP_WORKSPACE) -application com.ti.ccstudio.apps.projectImport -ccs.location $(CURDIR)/rpp-test-sw
$(ECLIPSE) -noSplash -data $(TMP_WORKSPACE) -application com.ti.ccstudio.apps.projectImport -ccs.location $(CURDIR)/rpp-lib
uncrustify:
git diff --quiet # Check that the tree is clean
$(UNCRUSTIFY_ALL)
+
+release: $(RELEASE_BASENAME).zip
+
+$(RELEASE_BASENAME):: lib
+ mkdir -p $@
+ cp --parents rpp-lib/rpp-lib.lib rpp-lib/common.mk $@/
+
+
+lib:
+ $(MAKE) -C rpp-lib/Release