-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6wT4wACgkQrlYvE4MpobP+qgCgtYhth0bgXRYIjoZHbkkieoyu WLMAn0ey83I/BevjCgkQtRpTv5X+i/R9 =T+mn -----END PGP SIGNATURE-----
>From 2b20bc80ad5aaafb6325da5186e5eb0d763b0fbe Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Mon, 19 Sep 2011 16:38:33 -0400 Subject: [PATCH 34/63] tree: Makefiles: syntax, convert all ${VAR} to $(VAR) This is purely personal preference. Most of the Makefiles use $() for Makefile variables, but a couple of places use ${}. Since this obscured some later Makefile changes I figured I'd just make them all the same up front. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- libselinux/src/Makefile | 2 +- policycoreutils/audit2allow/Makefile | 2 +- policycoreutils/audit2why/Makefile | 2 +- policycoreutils/load_policy/Makefile | 2 +- policycoreutils/newrole/Makefile | 18 +++++++++--------- policycoreutils/restorecond/Makefile | 2 +- policycoreutils/run_init/Makefile | 8 ++++---- policycoreutils/sandbox/Makefile | 6 +++--- policycoreutils/scripts/Makefile | 2 +- policycoreutils/secon/Makefile | 4 ++-- policycoreutils/semanage/Makefile | 2 +- policycoreutils/semodule/Makefile | 2 +- policycoreutils/semodule_deps/Makefile | 4 ++-- policycoreutils/semodule_expand/Makefile | 4 ++-- policycoreutils/semodule_link/Makefile | 4 ++-- policycoreutils/semodule_package/Makefile | 4 ++-- policycoreutils/sepolgen-ifgen/Makefile | 4 ++-- policycoreutils/sestatus/Makefile | 4 ++-- policycoreutils/setfiles/Makefile | 4 ++-- policycoreutils/setsebool/Makefile | 2 +- 20 files changed, 41 insertions(+), 41 deletions(-) diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index 78874be..2602d8b 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -102,7 +102,7 @@ $(AUDIT2WHYLOBJ): audit2why.c $(CC) $(filter-out -Werror, $(CFLAGS)) $(PYINC) -fPIC -DSHARED -c -o $@ $< $(AUDIT2WHYSO): $(AUDIT2WHYLOBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux ${LIBDIR}/libsepol.a -L$(LIBDIR) -Wl,-soname,$@ + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR) -Wl,-soname,$@ %.o: %.c policy.h $(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $< diff --git a/policycoreutils/audit2allow/Makefile b/policycoreutils/audit2allow/Makefile index 144f10f..88635d4 100644 --- a/policycoreutils/audit2allow/Makefile +++ b/policycoreutils/audit2allow/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin LIBDIR ?= $(PREFIX)/lib MANDIR ?= $(PREFIX)/share/man diff --git a/policycoreutils/audit2why/Makefile b/policycoreutils/audit2why/Makefile index bbf19e9..63eb8b3 100644 --- a/policycoreutils/audit2why/Makefile +++ b/policycoreutils/audit2why/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man diff --git a/policycoreutils/load_policy/Makefile b/policycoreutils/load_policy/Makefile index a634d4b..c90d4dd 100644 --- a/policycoreutils/load_policy/Makefile +++ b/policycoreutils/load_policy/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(DESTDIR)/sbin USRSBINDIR ?= $(PREFIX)/sbin MANDIR ?= $(PREFIX)/share/man diff --git a/policycoreutils/newrole/Makefile b/policycoreutils/newrole/Makefile index bd8e7a7..646cd4d 100644 --- a/policycoreutils/newrole/Makefile +++ b/policycoreutils/newrole/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man ETCDIR ?= $(DESTDIR)/etc @@ -24,7 +24,7 @@ CFLAGS ?= -Werror -Wall -W EXTRA_OBJS = override CFLAGS += -DVERSION=\"$(VERSION)\" $(LDFLAGS) -I$(PREFIX)/include -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\"" LDLIBS += -lselinux -L$(PREFIX)/lib -ifeq (${PAMH}, /usr/include/security/pam_appl.h) +ifeq ($(PAMH), /usr/include/security/pam_appl.h) override CFLAGS += -DUSE_PAM EXTRA_OBJS += hashtab.o LDLIBS += -lpam -lpam_misc @@ -32,23 +32,23 @@ else override CFLAGS += -D_XOPEN_SOURCE=500 LDLIBS += -lcrypt endif -ifeq (${AUDITH}, /usr/include/libaudit.h) +ifeq ($(AUDITH), /usr/include/libaudit.h) override CFLAGS += -DUSE_AUDIT LDLIBS += -laudit endif -ifeq (${LSPP_PRIV},y) +ifeq ($(LSPP_PRIV),y) override AUDIT_LOG_PRIV=y override NAMESPACE_PRIV=y endif -ifeq (${AUDIT_LOG_PRIV},y) +ifeq ($(AUDIT_LOG_PRIV),y) override CFLAGS += -DAUDIT_LOG_PRIV IS_SUID=y endif -ifeq (${NAMESPACE_PRIV},y) +ifeq ($(NAMESPACE_PRIV),y) override CFLAGS += -DNAMESPACE_PRIV IS_SUID=y endif -ifeq (${IS_SUID},y) +ifeq ($(IS_SUID),y) MODE := 4555 LDLIBS += -lcap-ng else @@ -66,9 +66,9 @@ install: all test -d $(MANDIR)/man1 || install -m 755 -d $(MANDIR)/man1 install -m $(MODE) newrole $(BINDIR) install -m 644 newrole.1 $(MANDIR)/man1/ -ifeq (${PAMH}, /usr/include/security/pam_appl.h) +ifeq ($(PAMH), /usr/include/security/pam_appl.h) test -d $(ETCDIR)/pam.d || install -m 755 -d $(ETCDIR)/pam.d -ifeq (${LSPP_PRIV},y) +ifeq ($(LSPP_PRIV),y) install -m 644 newrole-lspp.pamd $(ETCDIR)/pam.d/newrole else install -m 644 newrole.pamd $(ETCDIR)/pam.d/newrole diff --git a/policycoreutils/restorecond/Makefile b/policycoreutils/restorecond/Makefile index 03a4544..3074542 100644 --- a/policycoreutils/restorecond/Makefile +++ b/policycoreutils/restorecond/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(PREFIX)/sbin LIBDIR ?= $(PREFIX)/lib MANDIR = $(PREFIX)/share/man diff --git a/policycoreutils/run_init/Makefile b/policycoreutils/run_init/Makefile index a83cbd9..12b39b4 100644 --- a/policycoreutils/run_init/Makefile +++ b/policycoreutils/run_init/Makefile @@ -1,6 +1,6 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(PREFIX)/sbin MANDIR ?= $(PREFIX)/share/man ETCDIR ?= $(DESTDIR)/etc @@ -11,14 +11,14 @@ AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null) CFLAGS ?= -Werror -Wall -W override CFLAGS += -I$(PREFIX)/include -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\"" LDLIBS += -lselinux -L$(PREFIX)/lib -ifeq (${PAMH}, /usr/include/security/pam_appl.h) +ifeq ($(PAMH), /usr/include/security/pam_appl.h) override CFLAGS += -DUSE_PAM LDLIBS += -lpam -lpam_misc else override CFLAGS += -D_XOPEN_SOURCE=500 LDLIBS += -lcrypt endif -ifeq (${AUDITH}, /usr/include/libaudit.h) +ifeq ($(AUDITH), /usr/include/libaudit.h) override CFLAGS += -DUSE_AUDIT LDLIBS += -laudit endif @@ -38,7 +38,7 @@ install: all install -m 755 open_init_pty $(SBINDIR) install -m 644 run_init.8 $(MANDIR)/man8/ install -m 644 open_init_pty.8 $(MANDIR)/man8/ -ifeq (${PAMH}, /usr/include/security/pam_appl.h) +ifeq ($(PAMH), /usr/include/security/pam_appl.h) install -m 644 run_init.pamd $(ETCDIR)/pam.d/run_init endif diff --git a/policycoreutils/sandbox/Makefile b/policycoreutils/sandbox/Makefile index 763e957..36042a2 100644 --- a/policycoreutils/sandbox/Makefile +++ b/policycoreutils/sandbox/Makefile @@ -1,7 +1,7 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr -INITDIR ?= ${DESTDIR}/etc/rc.d/init.d/ -SYSCONFDIR ?= ${DESTDIR}/etc/sysconfig +PREFIX ?= $(DESTDIR)/usr +INITDIR ?= $(DESTDIR)/etc/rc.d/init.d/ +SYSCONFDIR ?= $(DESTDIR)/etc/sysconfig LIBDIR ?= $(PREFIX)/lib BINDIR ?= $(PREFIX)/bin SBINDIR ?= $(PREFIX)/sbin diff --git a/policycoreutils/scripts/Makefile b/policycoreutils/scripts/Makefile index cc75a96..17ad6ca 100644 --- a/policycoreutils/scripts/Makefile +++ b/policycoreutils/scripts/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin SBINDIR ?= $(PREFIX)/sbin MANDIR ?= $(PREFIX)/share/man diff --git a/policycoreutils/secon/Makefile b/policycoreutils/secon/Makefile index 7684a43..a2d9ca6 100644 --- a/policycoreutils/secon/Makefile +++ b/policycoreutils/secon/Makefile @@ -1,9 +1,9 @@ # secon tool - command-line context -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib WARNS=-Werror -W -Wall -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wfloat-equal VERSION = $(shell cat ../VERSION) diff --git a/policycoreutils/semanage/Makefile b/policycoreutils/semanage/Makefile index a8ecdd0..468e3b1 100644 --- a/policycoreutils/semanage/Makefile +++ b/policycoreutils/semanage/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr LIBDIR ?= $(PREFIX)/lib SBINDIR ?= $(PREFIX)/sbin MANDIR = $(PREFIX)/share/man diff --git a/policycoreutils/semodule/Makefile b/policycoreutils/semodule/Makefile index c96a286..a9110bf 100644 --- a/policycoreutils/semodule/Makefile +++ b/policycoreutils/semodule/Makefile @@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include SBINDIR ?= $(PREFIX)/sbin MANDIR = $(PREFIX)/share/man -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib CFLAGS ?= -Werror -Wall -W override CFLAGS += -I$(INCLUDEDIR) diff --git a/policycoreutils/semodule_deps/Makefile b/policycoreutils/semodule_deps/Makefile index 5211c3f..28d667e 100644 --- a/policycoreutils/semodule_deps/Makefile +++ b/policycoreutils/semodule_deps/Makefile @@ -1,8 +1,8 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include BINDIR ?= $(PREFIX)/bin -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib MANDIR ?= $(PREFIX)/share/man CFLAGS ?= -Werror -Wall -W diff --git a/policycoreutils/semodule_expand/Makefile b/policycoreutils/semodule_expand/Makefile index 178222f..d34d396 100644 --- a/policycoreutils/semodule_expand/Makefile +++ b/policycoreutils/semodule_expand/Makefile @@ -1,8 +1,8 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include BINDIR ?= $(PREFIX)/bin -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib MANDIR ?= $(PREFIX)/share/man CFLAGS ?= -Werror -Wall -W diff --git a/policycoreutils/semodule_link/Makefile b/policycoreutils/semodule_link/Makefile index 463d2b3..5c11348 100644 --- a/policycoreutils/semodule_link/Makefile +++ b/policycoreutils/semodule_link/Makefile @@ -1,9 +1,9 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib CFLAGS ?= -Werror -Wall -W override CFLAGS += -I$(INCLUDEDIR) diff --git a/policycoreutils/semodule_package/Makefile b/policycoreutils/semodule_package/Makefile index 3565f5e..928b5e3 100644 --- a/policycoreutils/semodule_package/Makefile +++ b/policycoreutils/semodule_package/Makefile @@ -1,8 +1,8 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include BINDIR ?= $(PREFIX)/bin -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib MANDIR ?= $(PREFIX)/share/man CFLAGS ?= -Werror -Wall -W diff --git a/policycoreutils/sepolgen-ifgen/Makefile b/policycoreutils/sepolgen-ifgen/Makefile index 99f8fd0..07af599 100644 --- a/policycoreutils/sepolgen-ifgen/Makefile +++ b/policycoreutils/sepolgen-ifgen/Makefile @@ -1,7 +1,7 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib INCLUDEDIR ?= $(PREFIX)/include CFLAGS ?= -Werror -Wall -W diff --git a/policycoreutils/sestatus/Makefile b/policycoreutils/sestatus/Makefile index 32638c2..5774e22 100644 --- a/policycoreutils/sestatus/Makefile +++ b/policycoreutils/sestatus/Makefile @@ -1,9 +1,9 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(PREFIX)/sbin MANDIR = $(PREFIX)/share/man ETCDIR ?= $(DESTDIR)/etc -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib CFLAGS = -Werror -Wall -W override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64 diff --git a/policycoreutils/setfiles/Makefile b/policycoreutils/setfiles/Makefile index 26a965f..77399af 100644 --- a/policycoreutils/setfiles/Makefile +++ b/policycoreutils/setfiles/Makefile @@ -1,5 +1,5 @@ # Installation directories. -PREFIX ?= ${DESTDIR}/usr +PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(DESTDIR)/sbin MANDIR = $(PREFIX)/share/man LIBDIR ?= $(PREFIX)/lib @@ -9,7 +9,7 @@ CFLAGS = -g -Werror -Wall -W override CFLAGS += -I$(PREFIX)/include LDLIBS = -lselinux -lsepol -L$(LIBDIR) -ifeq (${AUDITH}, /usr/include/libaudit.h) +ifeq ($(AUDITH), /usr/include/libaudit.h) override CFLAGS += -DUSE_AUDIT LDLIBS += -laudit endif diff --git a/policycoreutils/setsebool/Makefile b/policycoreutils/setsebool/Makefile index 556b780..69c55a5 100644 --- a/policycoreutils/setsebool/Makefile +++ b/policycoreutils/setsebool/Makefile @@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include SBINDIR ?= $(PREFIX)/sbin MANDIR = $(PREFIX)/share/man -LIBDIR ?= ${PREFIX}/lib +LIBDIR ?= $(PREFIX)/lib CFLAGS ?= -Werror -Wall -W override CFLAGS += -I$(INCLUDEDIR) -- 1.7.7