From c9a0ee43c9613f415bebff5e68610619c0c1435a Mon Sep 17 00:00:00 2001 From: Grzegorz Blach Date: Mon, 25 May 2015 03:52:43 +0200 Subject: [PATCH] Fix install-pam with gmake 4+ --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a8a1821..76d8a37 100644 --- a/Makefile +++ b/Makefile @@ -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}