From: Marc Kleine-Budde Date: Tue, 15 Jan 2013 11:33:01 +0100 Subject: [PATCH] makefile: Allow PAMH and AUDITH to be overwritten by ENV Signed-off-by: Marc Kleine-Budde --- newrole/Makefile | 4 ++-- run_init/Makefile | 4 ++-- setfiles/Makefile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/newrole/Makefile b/newrole/Makefile index e9834a3c9310..96bf978af16d 100644 --- a/newrole/Makefile +++ b/newrole/Makefile @@ -4,8 +4,8 @@ BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man ETCDIR ?= $(DESTDIR)/etc LOCALEDIR = /usr/share/locale -PAMH = $(shell ls /usr/include/security/pam_appl.h 2>/dev/null) -AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null) +PAMH ?= $(shell ls /usr/include/security/pam_appl.h 2>/dev/null) +AUDITH ?= $(shell ls /usr/include/libaudit.h 2>/dev/null) # Enable capabilities to permit newrole to generate audit records. # This will make newrole a setuid root program. # The capabilities used are: CAP_AUDIT_WRITE. diff --git a/run_init/Makefile b/run_init/Makefile index da45cc2ffff4..43bd9350d3dd 100644 --- a/run_init/Makefile +++ b/run_init/Makefile @@ -5,8 +5,8 @@ SBINDIR ?= $(PREFIX)/sbin MANDIR ?= $(PREFIX)/share/man ETCDIR ?= $(DESTDIR)/etc LOCALEDIR ?= /usr/share/locale -PAMH = $(shell ls /usr/include/security/pam_appl.h 2>/dev/null) -AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null) +PAMH ?= $(shell ls /usr/include/security/pam_appl.h 2>/dev/null) +AUDITH ?= $(shell ls /usr/include/libaudit.h 2>/dev/null) CFLAGS ?= -Werror -Wall -W override CFLAGS += -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\"" diff --git a/setfiles/Makefile b/setfiles/Makefile index 33f1c1100190..4b3aaa0619c6 100644 --- a/setfiles/Makefile +++ b/setfiles/Makefile @@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(DESTDIR)/sbin MANDIR = $(PREFIX)/share/man LIBDIR ?= $(PREFIX)/lib -AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null) +AUDITH ?= $(shell ls /usr/include/libaudit.h 2>/dev/null) PROGRESS_STEP=$(shell grep "^\#define STAR_COUNT" restore.h | awk -S '{ print $$3 }') ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{ print $$3 }')