General: show total lines added/removed.
[gitstats.git] / Makefile
blobbc4f5347b643855b0f9adbac625eef6e6e6e8e94
1 PREFIX=/usr/local
2 BINDIR=$(PREFIX)/bin
3 RESOURCEDIR=$(PREFIX)/share/gitstats
4 RESOURCES=gitstats.css sortable.js *.gif
5 BINARIES=gitstats
6 VERSION=$(shell git rev-parse --short HEAD)
8 all: help
10 help:
11 @echo "Usage:"
12 @echo
13 @echo "make install # install to ${PREFIX}"
14 @echo "make install PREFIX=~ # install to ~"
15 @echo "make release [VERSION=foo] # make a release tarball"
16 @echo
18 install:
19 install -d $(BINDIR) $(RESOURCEDIR)
20 install -v $(BINARIES) $(BINDIR)
21 install -v -m 644 $(RESOURCES) $(RESOURCEDIR)
22 sed -i 's/VERSION = 0/VERSION = "$(VERSION)"/' $(BINDIR)/gitstats
24 release:
25 @tar --owner=0 --group=0 --transform 's!^!gitstats/!' -zcf gitstats-$(VERSION).tar.gz $(BINARIES) $(RESOURCES) doc/ Makefile
27 .PHONY: all help install release