libselinux: Update Makefiles to handle /usrmove
Move everything into /usr/* and just put links from /*. The whole /usr
thing hasn't really worked in all situations for a long long time. Just
accept that fact and move along.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile
index 4b2f348..d6335da 100644
--- a/libselinux/utils/Makefile
+++ b/libselinux/utils/Makefile
@@ -1,8 +1,8 @@
# Installation directories.
PREFIX ?= $(DESTDIR)/usr
LIBDIR ?= $(PREFIX)/lib
-BINDIR ?= $(PREFIX)/sbin
-_BINDIR ?= $(DESTDIR)/sbin
+USRBINDIR ?= $(PREFIX)/sbin
+SBINDIR ?= $(DESTDIR)/sbin
MAX_STACK_SIZE=8192
CFLAGS ?= -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissing-include-dirs \
@@ -40,14 +40,16 @@
all: $(TARGETS) matchpathcon
install: all
- -mkdir -p $(BINDIR)
- install -m 755 $(TARGETS) $(BINDIR)
- -mkdir -p $(_BINDIR)
- install -m 755 matchpathcon $(_BINDIR)
+ -mkdir -p $(USRBINDIR)
+ install -m 755 $(TARGETS) $(USRBINDIR)
+ -mkdir -p $(SBINDIR)
+ install -m 755 matchpathcon $(SBINDIR)
(cd $(BINDIR); ln -fs ../../sbin/matchpathcon)
clean:
rm -f $(TARGETS) matchpathcon *.o *~
+distclean: clean
+
indent:
../../scripts/Lindent $(wildcard *.[ch])