• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Installation directories.
2LINGUAS ?= ru
3PREFIX ?= /usr
4SBINDIR ?= $(PREFIX)/sbin
5MANDIR = $(PREFIX)/share/man
6BASHCOMPLETIONDIR ?= $(PREFIX)/share/bash-completion/completions
7
8CFLAGS ?= -Werror -Wall -W
9override LDLIBS += -lsepol -lselinux -lsemanage
10SETSEBOOL_OBJS = setsebool.o
11
12BASHCOMPLETIONS=setsebool-bash-completion.sh
13
14all: setsebool
15
16setsebool: $(SETSEBOOL_OBJS)
17
18install: all
19	-mkdir -p $(DESTDIR)$(SBINDIR)
20	install -m 755 setsebool $(DESTDIR)$(SBINDIR)
21	-mkdir -p $(DESTDIR)$(MANDIR)/man8
22	install -m 644 setsebool.8 $(DESTDIR)$(MANDIR)/man8/
23	for lang in $(LINGUAS) ; do \
24		if [ -e $${lang} ] ; then \
25			mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
26			install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
27		fi ; \
28	done
29	-mkdir -p $(DESTDIR)$(BASHCOMPLETIONDIR)
30	install -m 644 $(BASHCOMPLETIONS) $(DESTDIR)$(BASHCOMPLETIONDIR)/setsebool
31
32relabel:
33
34clean:
35	-rm -f setsebool *.o
36
37indent:
38	../../scripts/Lindent $(wildcard *.[ch])
39
40