]> git.sur5r.net Git - i3/i3/commitdiff
Makefile: don’t set PREFIX/SYSCONFDIR (necessary for OpenBSD ports framework) (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 24 Jul 2010 10:21:33 +0000 (12:21 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 23 Jul 2011 20:24:23 +0000 (22:24 +0200)
common.mk

index 59f386ce87d3246007cece66bcd19a684c48af6f..0a695e7dc3205f185c7f94f016dd152a151dcd6d 100644 (file)
--- 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