Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks madroach)
This commit is contained in:
parent
8ff956a348
commit
44f46a5ee6
14
common.mk
14
common.mk
|
@ -2,11 +2,15 @@ UNAME=$(shell uname)
|
|||
DEBUG=1
|
||||
COVERAGE=0
|
||||
INSTALL=install
|
||||
PREFIX=/usr
|
||||
ifeq ($(PREFIX),/usr)
|
||||
SYSCONFDIR=/etc
|
||||
else
|
||||
SYSCONFDIR=$(PREFIX)/etc
|
||||
ifndef PREFIX
|
||||
PREFIX=/usr
|
||||
endif
|
||||
ifndef SYSCONFDIR
|
||||
ifeq ($(PREFIX),/usr)
|
||||
SYSCONFDIR=/etc
|
||||
else
|
||||
SYSCONFDIR=$(PREFIX)/etc
|
||||
endif
|
||||
endif
|
||||
TERM_EMU=xterm
|
||||
# The escaping is absurd, but we need to escape for shell, sed, make, define
|
||||
|
|
Loading…
Reference in New Issue