1 # Installation directories. 2 PREFIX ?= $(DESTDIR)/usr 3 INCLUDEDIR ?= $(PREFIX)/include 4 SBINDIR ?= $(PREFIX)/sbin 5 MANDIR = $(PREFIX)/share/man 6 LIBDIR ?= $(PREFIX)/lib 7 BASHCOMPLETIONDIR ?= $(DESTDIR)/usr/share/bash-completion/completions 8 9 CFLAGS ?= -Werror -Wall -W 10 override LDLIBS += -lsepol -lselinux -lsemanage 11 SETSEBOOL_OBJS = setsebool.o 12 13 BASHCOMPLETIONS=setsebool-bash-completion.sh 14 15 all: setsebool 16 17 setsebool: $(SETSEBOOL_OBJS) 18 19 install: 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 27 relabel: 28 29 clean: 30 -rm -f setsebool *.o 31 32 indent: 33 ../../scripts/Lindent $(wildcard *.[ch]) 34 35