This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

make dist

  • Loading branch information...
1 parent 4ad5969 commit 6fd96ba4c2e7f3bf439bbed3e6a90385b7463de7 @rtomayko committed Apr 27, 2010
Showing with 12 additions and 1 deletion.
  1. +12 −1 Makefile
View
@@ -140,6 +140,17 @@ tags:
--exclude=/usr/X11 \
-R -f tags . /usr/include
+dist:
+ tarname=$(TARNAME)-$$(git describe --tags); \
+ mkdir -p dist; \
+ if test -f dist/$$tarname.tar.gz; \
+ then echo "$$tarname.tar.gz already exists. not overwriting." 1>&2; \
+ false; \
+ else git archive --format=tar --prefix=$${tarname}/ HEAD | \
+ gzip >dist/$$tarname.tar.gz && \
+ echo "dist/$$tarname.tar.gz"; \
+ fi
+
.SILENT:
-.PHONY: install uninstall clean tags
+.PHONY: install uninstall clean tags dist

0 comments on commit 6fd96ba

Please sign in to comment.