mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-11 07:59:26 +00:00
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:
parent
88234671ed
commit
5e50b01fa4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user