]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Add release target to the Makefile
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 3 Dec 2014 17:14:45 +0000 (18:14 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 3 Dec 2014 17:14:45 +0000 (18:14 +0100)
.gitattributes
Makefile
rpp-test-sw/commands/doc/.gitattributes [new file with mode: 0644]

index 3b67e28763799d6d5ede2a60e350d0d8dbd3e84b..22e0b02d6e6b4120dbc5b4144f39551fa3c64607 100644 (file)
@@ -1 +1,3 @@
 *.[ch] uncrustify
+
+.git* export-ignore
index be01ef347ff9f411940775004258093660107871..2dc25f22504b9768dd97ef99f22418276c40a11b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,12 @@
 # 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
@@ -42,3 +43,13 @@ endef
 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
diff --git a/rpp-test-sw/commands/doc/.gitattributes b/rpp-test-sw/commands/doc/.gitattributes
new file mode 100644 (file)
index 0000000..b588251
--- /dev/null
@@ -0,0 +1 @@
+wiki-edit.pl export-ignore