policycoreutils: fix sandbox Makefile to support DESTDIR

Fix sandbox Makefile so that make DESTDIR=~/out install works again.

Signed-off-by:  Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Stephen Smalley 2011-09-19 11:23:03 -04:00 committed by Eric Paris
parent 88234671ed
commit 5e50b01fa4

View File

@ -2,6 +2,7 @@
PREFIX ?= $(DESTDIR)/usr PREFIX ?= $(DESTDIR)/usr
INITDIR ?= $(DESTDIR)/etc/rc.d/init.d/ INITDIR ?= $(DESTDIR)/etc/rc.d/init.d/
SYSCONFDIR ?= $(DESTDIR)/etc/sysconfig SYSCONFDIR ?= $(DESTDIR)/etc/sysconfig
LIBDIR ?= $(PREFIX)/lib
BINDIR ?= $(PREFIX)/bin BINDIR ?= $(PREFIX)/bin
SBINDIR ?= $(PREFIX)/sbin SBINDIR ?= $(PREFIX)/sbin
MANDIR ?= $(PREFIX)/share/man MANDIR ?= $(PREFIX)/share/man
@ -13,7 +14,7 @@ LDLIBS += -lcgroup -lselinux -lcap-ng
all: sandbox seunshare sandboxX.sh start all: sandbox seunshare sandboxX.sh start
seunshare: seunshare.o $(EXTRA_OBJS) seunshare: seunshare.o $(EXTRA_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) -L$(LIBDIR)
install: all install: all
-mkdir -p $(BINDIR) -mkdir -p $(BINDIR)