Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks madroach)
This commit is contained in:
parent
8ff956a348
commit
44f46a5ee6
|
@ -2,12 +2,16 @@ UNAME=$(shell uname)
|
||||||
DEBUG=1
|
DEBUG=1
|
||||||
COVERAGE=0
|
COVERAGE=0
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
|
ifndef PREFIX
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
endif
|
||||||
|
ifndef SYSCONFDIR
|
||||||
ifeq ($(PREFIX),/usr)
|
ifeq ($(PREFIX),/usr)
|
||||||
SYSCONFDIR=/etc
|
SYSCONFDIR=/etc
|
||||||
else
|
else
|
||||||
SYSCONFDIR=$(PREFIX)/etc
|
SYSCONFDIR=$(PREFIX)/etc
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
TERM_EMU=xterm
|
TERM_EMU=xterm
|
||||||
# The escaping is absurd, but we need to escape for shell, sed, make, define
|
# The escaping is absurd, but we need to escape for shell, sed, make, define
|
||||||
GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1), branch $(shell [ -f $(TOPDIR)/.git/HEAD ] && sed 's/ref: refs\/heads\/\(.*\)/\\\\\\"\1\\\\\\"/g' $(TOPDIR)/.git/HEAD || echo 'unknown'))"
|
GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1), branch $(shell [ -f $(TOPDIR)/.git/HEAD ] && sed 's/ref: refs\/heads\/\(.*\)/\\\\\\"\1\\\\\\"/g' $(TOPDIR)/.git/HEAD || echo 'unknown'))"
|
||||||
|
|
Loading…
Reference in New Issue