~gpanders/ijq

8f4f95e50908594020e49435b55ce87307319194 — Gregory Anders a month ago d5ae8b0 master
Support upper case PREFIX in Makefile

The GNU Make manual specifies lower-case "prefix" as the convention [1],
but in reality upper-case PREFIX seems just as common (if not more
common). We can make life a little easier for packagers by supporting
both.

[1]: https://www.gnu.org/software/make/manual/html_node/Directory-Variables.html
1 files changed, 6 insertions(+), 0 deletions(-)

M Makefile
M Makefile => Makefile +6 -0
@@ 1,4 1,10 @@
prefix = /usr/local

# Support upper case PREFIX
ifneq ($(PREFIX),)
	prefix := $(PREFIX)
endif

bindir = $(prefix)/bin
mandir = $(prefix)/share/man