Pay attention to $PREFIX when installing the man page

This commit is contained in:
Eric Fischer 2015-10-29 16:46:57 -07:00
parent 9a09e92357
commit fd5ced6902
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
PREFIX ?= /usr/local
MANDIR ?= /usr/local/share/man/man1/
MANDIR ?= $(PREFIX)/share/man/man1/
all: tippecanoe enumerate decode tile-join
@ -7,8 +7,9 @@ docs: man/tippecanoe.1
install: tippecanoe
mkdir -p $(PREFIX)/bin
mkdir -p $(MANDIR)
cp tippecanoe $(PREFIX)/bin/tippecanoe
cp man/tippecanoe.1 $(MANDIR)
cp man/tippecanoe.1 $(MANDIR)/tippecanoe.1
man/tippecanoe.1: README.md
md2man-roff README.md > man/tippecanoe.1

View File

@ -1 +1 @@
#define VERSION "tippecanoe v1.3.0\n"
#define VERSION "tippecanoe v1.3.1\n"