From bf2038dc51b0b07ef73fb820470104fafa31648d Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Sat, 7 Jul 2012 14:13:21 -0700 Subject: [PATCH] versioning: incremental natural numbers. We'll use 1..2..3.. etc. as version numbers. `tag` and `dist` targets help with packaging. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index c986146df..9238f0179 100644 --- a/Makefile +++ b/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