Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make dist

  • Loading branch information...
commit 6fd96ba4c2e7f3bf439bbed3e6a90385b7463de7 1 parent 4ad5969
@rtomayko authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 Makefile
View
13 Makefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.