Permalink
Browse files

dist makefile target for building .tar.gz

  • Loading branch information...
1 parent 4f51a1f commit e42382f321e7e0dedab296074d40caed8e27bb6c jpike committed Mar 21, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +5 −1 src/vu8/Makefile
View
@@ -1,2 +1,3 @@
src/vu8/obj
src/vu8/Makefile.local
+*.tar.gz
View
@@ -1,4 +1,4 @@
-.PHONY: default build install test clean config
+.PHONY: default build install test clean config dist
-include Makefile.local
@@ -28,3 +28,7 @@ test:
clean:
@${MAKE} -C ${O} clean
@rm -rf obj
+
+dist:
+ ver=vu8-`git tag | tail -n 1` && \
+ cd ../.. && git archive --prefix $$ver/ master | gzip > src/vu8/$$ver.tar.gz

0 comments on commit e42382f

Please sign in to comment.