libselinux/utils: do not create an empty /sbin directory
When building libselinux package, "make install" creates /sbin directory without putting anything in it. Remove this from the Makefile. While at it, rename USRBINDIR variable USRSBINDIR (with an S) as it refers to /usr/sbin. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
920ee9ee18
commit
055d14a99a
1 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
|||
# Installation directories.
|
||||
PREFIX ?= $(DESTDIR)/usr
|
||||
LIBDIR ?= $(PREFIX)/lib
|
||||
USRBINDIR ?= $(PREFIX)/sbin
|
||||
SBINDIR ?= $(DESTDIR)/sbin
|
||||
USRSBINDIR ?= $(PREFIX)/sbin
|
||||
INCLUDEDIR ?= $(PREFIX)/include
|
||||
|
||||
OS ?= $(shell uname)
|
||||
|
@ -64,9 +63,9 @@ selinux_restorecon: LDLIBS += -lsepol
|
|||
all: $(TARGETS)
|
||||
|
||||
install: all
|
||||
-mkdir -p $(USRBINDIR)
|
||||
install -m 755 $(TARGETS) $(USRBINDIR)
|
||||
-mkdir -p $(SBINDIR)
|
||||
-mkdir -p $(USRSBINDIR)
|
||||
install -m 755 $(TARGETS) $(USRSBINDIR)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS) *.o *~
|
||||
|
||||
|
|
Loading…
Reference in a new issue