Skip to content

Commit

Permalink
Fix install-pam with gmake 4+
Browse files Browse the repository at this point in the history
  • Loading branch information
gblach committed May 25, 2015
1 parent 116db2d commit c9a0ee4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
BIN=please
OBJ=${BIN}.o
MAN=${BIN}.1
PAM=pam.d/${BIN}.$(shell echo `uname`)
PAM!=echo ${PAM}`uname`
PAM!=echo pam.d/${BIN}.`uname`

CC?=cc
CFLAGS?=-O2 -march=native
LDFLAGS?=
LIBS=-lpam $(shell if [ `uname` = Linux ]; then echo -lpam_misc; fi)
LIBS!=echo -n '-lpam'; if [ `uname` = Linux ]; then echo -n ' -lpam_misc'; fi
PREFIX?=/usr/local
PAMDIR=$(shell if [ `uname` = FreeBSD ]; then echo -n ${PREFIX}; fi)/etc/pam.d
PAMDIR!=if [ `uname` = FreeBSD ]; then echo -n ${PREFIX}; fi; echo ${PAMDIR}
PAMDIR!=if [ `uname` = FreeBSD ]; then echo -n ${PREFIX}; fi; echo /etc/pam.d


all: ${BIN} ${MAN}
Expand Down

0 comments on commit c9a0ee4

Please sign in to comment.