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