Added a Makefile with simple install target.

master
Heikki Hokkanen 2009-12-13 13:30:16 +02:00
parent e774d43ca4
commit 3a2b43e5a4
1 changed files with 21 additions and 0 deletions

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
PREFIX=/usr
BINDIR=$(PREFIX)/bin
RESOURCEDIR=$(PREFIX)/share/gitstats
RESOURCES=gitstats.css sortable.js *.gif
BINARIES=gitstats
all: help
help:
@echo "Usage:"
@echo
@echo "make install # install to /usr"
@echo "make install PREFIX=~ # install to ~"
@echo
install:
install -d $(BINDIR) $(RESOURCEDIR)
install -v $(BINARIES) $(BINDIR)
install -v -m 644 $(RESOURCES) $(RESOURCEDIR)
.PHONY: all help install