Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks madroach)
This commit is contained in:
parent
a89fa51531
commit
ca8d775487
14
common.mk
14
common.mk
|
@ -1,11 +1,15 @@
|
||||||
UNAME=$(shell uname)
|
UNAME=$(shell uname)
|
||||||
DEBUG=1
|
DEBUG=1
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
PREFIX=/usr
|
ifndef PREFIX
|
||||||
ifeq ($(PREFIX),/usr)
|
PREFIX=/usr
|
||||||
SYSCONFDIR=/etc
|
endif
|
||||||
else
|
ifndef SYSCONFDIR
|
||||||
SYSCONFDIR=$(PREFIX)/etc
|
ifeq ($(PREFIX),/usr)
|
||||||
|
SYSCONFDIR=/etc
|
||||||
|
else
|
||||||
|
SYSCONFDIR=$(PREFIX)/etc
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
# 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 .git/HEAD ] && sed 's/ref: refs\/heads\/\(.*\)/\\\\\\"\1\\\\\\"/g' .git/HEAD || echo 'unknown'))"
|
GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1), branch $(shell [ -f .git/HEAD ] && sed 's/ref: refs\/heads\/\(.*\)/\\\\\\"\1\\\\\\"/g' .git/HEAD || echo 'unknown'))"
|
||||||
|
|
Loading…
Reference in New Issue