Added a Makefile with simple install target.
This commit is contained in:
parent
e774d43ca4
commit
3a2b43e5a4
21
Makefile
Normal file
21
Makefile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user