policycoreutils: scripts: 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>
This commit is contained in:
Dan Walsh 2012-01-27 14:01:00 -05:00 committed by Eric Paris
parent 46d294f645
commit a56e91742f

View File

@ -1,7 +1,8 @@
# Installation directories. # Installation directories.
PREFIX ?= $(DESTDIR)/usr PREFIX ?= $(DESTDIR)/usr
BINDIR ?= $(PREFIX)/bin BINDIR ?= $(PREFIX)/bin
SBINDIR ?= $(PREFIX)/sbin USRSBINDIR ?= $(PREFIX)/sbin
SBINDIR ?= $(DESTDIR)/sbin
MANDIR ?= $(PREFIX)/share/man MANDIR ?= $(PREFIX)/share/man
LOCALEDIR ?= /usr/share/locale LOCALEDIR ?= /usr/share/locale
@ -10,8 +11,8 @@ all: fixfiles genhomedircon chcat
install: all install: all
-mkdir -p $(BINDIR) -mkdir -p $(BINDIR)
install -m 755 chcat $(BINDIR) install -m 755 chcat $(BINDIR)
install -m 755 fixfiles $(DESTDIR)/sbin install -m 755 fixfiles $(SBINDIR)
install -m 755 genhomedircon $(SBINDIR) install -m 755 genhomedircon $(USRSBINDIR)
-mkdir -p $(MANDIR)/man8 -mkdir -p $(MANDIR)/man8
install -m 644 fixfiles.8 $(MANDIR)/man8/ install -m 644 fixfiles.8 $(MANDIR)/man8/
install -m 644 genhomedircon.8 $(MANDIR)/man8/ install -m 644 genhomedircon.8 $(MANDIR)/man8/