Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks madroach)

This commit is contained in:
Michael Stapelberg 2010-07-24 12:21:33 +02:00
parent 8ff956a348
commit 44f46a5ee6

View File

@ -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