Skip to content
Browse files

versioning: incremental natural numbers.

We'll use 1..2..3.. etc. as version numbers. `tag` and `dist` targets
help with packaging.
  • Loading branch information...
1 parent e513809 commit bf2038dc51b0b07ef73fb820470104fafa31648d @sofar sofar committed Jul 7, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 Makefile
View
8 Makefile
@@ -1,4 +1,6 @@
+VERSION = 1
+
bin_PROGS = prog/lvu prog/lvis prog/lsh
sbin_PROGS = prog/lin prog/lrm prog/lunar prog/lget
@@ -75,3 +77,9 @@ install: .PHONY
# easy way out for the docs:
install -d $(DESTDIR)/usr/share/doc/lunar
cp -av doc $(DESTDIR)/usr/share/doc/lunar/
+
+tag:
+ git tag v$(VERSION)
+
+dist:
+ git archive --format=tar --prefix="lunar-$(VERSION)/" v$(VERSION) | bzip2 > lunar-$(VERSION).tar.bz2

0 comments on commit bf2038d

Please sign in to comment.
Something went wrong with that request. Please try again.