From 44f46a5ee692ca370eaf5ab94759677dc5d7b96d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 24 Jul 2010 12:21:33 +0200 Subject: [PATCH] =?UTF-8?q?Makefile:=20don=E2=80=99t=20set=20PREFIX/SYSCON?= =?UTF-8?q?FDIR=20(necessary=20for=20OpenBSD=20ports=20framework)=20(Thank?= =?UTF-8?q?s=20madroach)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.mk | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/common.mk b/common.mk index 59f386ce..0a695e7d 100644 --- a/common.mk +++ b/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