1 # Installation directories. 2 PREFIX ?= $(DESTDIR)/usr 3 INCLUDEDIR ?= $(PREFIX)/include 4 BINDIR ?= $(PREFIX)/bin 5 LIBDIR ?= $(PREFIX)/lib 6 MANDIR ?= $(PREFIX)/share/man 7 LIBSEPOLA ?= $(LIBDIR)/libsepol.a 8 9 CFLAGS ?= -Werror -Wall -W 10 11 all: semodule_deps 12 13 semodule_deps: semodule_deps.o $(LIBSEPOLA) 14 15 install: all 16 -mkdir -p $(BINDIR) 17 install -m 755 semodule_deps $(BINDIR) 18 test -d $(MANDIR)/man8 || install -m 755 -d $(MANDIR)/man8 19 install -m 644 semodule_deps.8 $(MANDIR)/man8/ 20 21 relabel: 22 23 clean: 24 -rm -f semodule_deps *.o 25 26 indent: 27 ../../scripts/Lindent $(wildcard *.[ch]) 28 29