diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-10-29 22:37:14 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-10-29 22:42:46 +0200 |
commit | f7d95139d88c20e6dc4f29df0a0189f22526066d (patch) | |
tree | 6cf2bdf868199cae41e0f18a8b6bc7bd0452d0bb /Makefile | |
parent | 0b42100bfaf1a237c6254a9737ec5d7623f77840 (diff) |
change the way we generate dist tarballs
This no longer displays (git) errors if you use the release tarball.
It also adds a make target for fb in order to get rid of the git
checking inside fb.
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -2,13 +2,18 @@ VERSION:=$(shell git describe | sed 's/^v//') MANDIR=/usr/share/man BINDIR=/usr/bin -all: fb.1 +all: fb.1 fb + +fb: fb.in + @[ -n "$(VERSION)" ] || (echo "Error: version detection failed"; exit 1) + sed 's/@VERSION@/$(VERSION)/' fb.in > fb + chmod 755 fb fb.1: fb.pod pod2man -c "" fb.pod fb.1 clean: - rm -f fb.1 + rm -f fb.1 fb rm -rf dist install: all @@ -20,9 +25,10 @@ uninstall: rm -f $(DESTDIR)$(MANDIR)/man1/fb.1 dist: all + @[ -n "$(VERSION)" ] || (echo "Error: version detection failed"; exit 1) mkdir -p dist/fb-$(VERSION) - cp -a fb fb.pod fb.1 COPYING Makefile dist/fb-$(VERSION) - sed -i 's/^VERSION=.*$$/VERSION="'$(VERSION)'"/' dist/fb-$(VERSION)/fb + cp -a fb fb.in fb.pod fb.1 COPYING Makefile dist/fb-$(VERSION) + sed -i 's/^VERSION:=.*$$/VERSION:="'$(VERSION)'"/' dist/fb-$(VERSION)/Makefile cd dist; tar -czf fb-$(VERSION).tar.gz fb-$(VERSION) version: |