diff --git a/Makefile b/Makefile index a2733c6..0c181ff 100644 --- a/Makefile +++ b/Makefile @@ -14,13 +14,8 @@ DATADIR = ${PREFIX}/share MANDIR = ${DATADIR}/man SYSCONFDIR = ${PREFIX}/etc -# set sysconfdir /etc if prefix /usr -ifeq (${PREFIX},/usr) - SYSCONFDIR = /etc -endif - -# set sysconfdir /etc if prefix /usr/local -ifeq (${PREFIX},/usr/local) +# set sysconfdir /etc if prefix /usr || /usr/local +ifneq (, $(filter /usr /usr/local, ${PREFIX})) SYSCONFDIR = /etc endif