• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Installation directories.
2PREFIX ?= $(DESTDIR)/usr
3INCLUDEDIR ?= $(PREFIX)/include
4SBINDIR ?= $(PREFIX)/sbin
5MANDIR = $(PREFIX)/share/man
6LIBDIR ?= $(PREFIX)/lib
7BASHCOMPLETIONDIR ?= $(DESTDIR)/usr/share/bash-completion/completions
8
9CFLAGS ?= -Werror -Wall -W
10LDLIBS = -lsepol -lselinux -lsemanage
11SETSEBOOL_OBJS = setsebool.o
12
13BASHCOMPLETIONS=setsebool-bash-completion.sh
14
15all: setsebool
16
17setsebool: $(SETSEBOOL_OBJS)
18
19install: all
20	-mkdir -p $(SBINDIR)
21	install -m 755 setsebool $(SBINDIR)
22	-mkdir -p $(MANDIR)/man8
23	install -m 644 setsebool.8 $(MANDIR)/man8/
24	-mkdir -p $(BASHCOMPLETIONDIR)
25	install -m 644 $(BASHCOMPLETIONS) $(BASHCOMPLETIONDIR)/setsebool
26
27relabel:
28
29clean:
30	-rm -f setsebool *.o
31
32indent:
33	../../scripts/Lindent $(wildcard *.[ch])
34
35