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