From: Michael Stapelberg Date: Sat, 24 Jul 2010 10:21:33 +0000 (+0200) Subject: Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks... X-Git-Tag: 4.0~14^2~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44f46a5ee692ca370eaf5ab94759677dc5d7b96d;p=i3%2Fi3 Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks madroach) --- 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