2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
2018-12-25 15:25:05 +00:00
|
|
|
LINGUAS ?= ru
|
2018-02-14 09:57:09 +00:00
|
|
|
PREFIX ?= /usr
|
2008-08-19 19:30:36 +00:00
|
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
|
|
MANDIR = $(PREFIX)/share/man
|
2018-02-14 09:57:09 +00:00
|
|
|
BASHCOMPLETIONDIR ?= $(PREFIX)/share/bash-completion/completions
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
2017-06-20 15:16:41 +00:00
|
|
|
override LDLIBS += -lsepol -lselinux -lsemanage
|
2008-08-19 19:30:36 +00:00
|
|
|
SETSEBOOL_OBJS = setsebool.o
|
|
|
|
|
2012-03-06 15:45:29 +00:00
|
|
|
BASHCOMPLETIONS=setsebool-bash-completion.sh
|
|
|
|
|
2008-08-19 19:30:36 +00:00
|
|
|
all: setsebool
|
|
|
|
|
|
|
|
setsebool: $(SETSEBOOL_OBJS)
|
|
|
|
|
|
|
|
install: all
|
2018-02-14 09:57:09 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(SBINDIR)
|
|
|
|
install -m 755 setsebool $(DESTDIR)$(SBINDIR)
|
|
|
|
-mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 setsebool.8 $(DESTDIR)$(MANDIR)/man8/
|
2018-12-25 15:25:05 +00:00
|
|
|
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
|
2018-02-14 09:57:09 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(BASHCOMPLETIONDIR)
|
|
|
|
install -m 644 $(BASHCOMPLETIONS) $(DESTDIR)$(BASHCOMPLETIONDIR)/setsebool
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
relabel:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f setsebool *.o
|
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|