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
|
DEBUG=1
|
||||||
COVERAGE=0
|
COVERAGE=0
|
||||||
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
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user