From 96c2a23c0efcd1b04829e86145a6110b7722ac61 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Sat, 6 Jun 2015 17:02:20 +0200 Subject: [PATCH] Makefile: Combine two ifeq using ifneq and filter --- Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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