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
1 changed files with 9 additions and 5 deletions

View File

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