BUILD_DATE:=$(shell date '+%Y-%m-%d')
BUILD_COMMIT:=$(shell if git rev-parse >/dev/null 2>/dev/null ; then git describe --always --tags ; else echo '<unknown>' ; fi)
+DESTDIR=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
rm -f *.tar.gz
install: all
- install -d $(BINDIR) $(MANDIR)/man1
- install -s paperjam $(BINDIR)/
- install -m 644 paperjam.1 $(MANDIR)/man1/
+ install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+ install -s paperjam $(DESTDIR)$(BINDIR)/
+ install -m 644 paperjam.1 $(DESTDIR)$(MANDIR)/man1/
release:
git tag v$(VERSION)