Skip to content

Commit

Permalink
Makefile: Combine two ifeq using ifneq and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 6, 2015
1 parent 929b6e5 commit 96c2a23
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 96c2a23

Please sign in to comment.