mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-21 05:30:13 +00:00
14f35fde50
Since they are being removed, there will be nothing to install. Suggested-by: Petr Lautrbach <plautrba@redhat.com> Signed-off-by: James Carter <jwcart2@gmail.com> Acked-by: Petr Lautrbach <lautrbach@redhat.com>
36 lines
1017 B
Makefile
36 lines
1017 B
Makefile
# Installation directories.
|
|
LINGUAS ?=
|
|
PREFIX ?= /usr
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
LOCALEDIR ?= $(DESTDIR)$(PREFIX)/share/locale
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
override CFLAGS += $(LDFLAGS) -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
|
|
override LDLIBS += -lsepol -lselinux
|
|
|
|
TARGETS=$(patsubst %.c,%,$(sort $(wildcard *.c)))
|
|
|
|
all: $(TARGETS)
|
|
|
|
install: all
|
|
-mkdir -p $(DESTDIR)$(SBINDIR)
|
|
install -m 755 $(TARGETS) $(DESTDIR)$(SBINDIR)
|
|
test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
|
|
install -m 644 load_policy.8 $(DESTDIR)$(MANDIR)/man8/
|
|
for lang in $(LINGUAS) ; do \
|
|
if [ -e $${lang} ] ; then \
|
|
test -d $(DESTDIR)$(MANDIR)/$${lang}/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
|
|
install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
|
|
fi ; \
|
|
done
|
|
|
|
clean:
|
|
-rm -f $(TARGETS) *.o
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel:
|
|
/sbin/restorecon $(DESTDIR)$(SBINDIR)/load_policy
|