mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-11-23 11:39:50 +00:00
0445e65d83
Signed-off-by: Aleksei Nikiforov <darktemplar@basealt.ru>
40 lines
964 B
Makefile
40 lines
964 B
Makefile
# Installation directories.
|
|
LINGUAS ?= ru
|
|
PREFIX ?= /usr
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
BASHCOMPLETIONDIR ?= $(PREFIX)/share/bash-completion/completions
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
override LDLIBS += -lsepol -lselinux -lsemanage
|
|
SETSEBOOL_OBJS = setsebool.o
|
|
|
|
BASHCOMPLETIONS=setsebool-bash-completion.sh
|
|
|
|
all: setsebool
|
|
|
|
setsebool: $(SETSEBOOL_OBJS)
|
|
|
|
install: all
|
|
-mkdir -p $(DESTDIR)$(SBINDIR)
|
|
install -m 755 setsebool $(DESTDIR)$(SBINDIR)
|
|
-mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
install -m 644 setsebool.8 $(DESTDIR)$(MANDIR)/man8/
|
|
for lang in $(LINGUAS) ; do \
|
|
if [ -e $${lang} ] ; then \
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
|
|
install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
|
|
fi ; \
|
|
done
|
|
-mkdir -p $(DESTDIR)$(BASHCOMPLETIONDIR)
|
|
install -m 644 $(BASHCOMPLETIONS) $(DESTDIR)$(BASHCOMPLETIONDIR)/setsebool
|
|
|
|
relabel:
|
|
|
|
clean:
|
|
-rm -f setsebool *.o
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|