Skip to content

Commit

Permalink
Makefile: Use filter to replace SYSCONFDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 6, 2015
1 parent 1ec7ca8 commit 7f81ff2
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 @@ -28,13 +28,8 @@ UNPRIV_USER = nobody

##############################################################################

### 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 7f81ff2

Please sign in to comment.