1PYTHON ?= python 2 3# Installation directories. 4PREFIX ?= $(DESTDIR)/usr 5BINDIR ?= $(PREFIX)/bin 6LIBDIR ?= $(PREFIX)/lib 7MANDIR ?= $(PREFIX)/share/man 8LOCALEDIR ?= /usr/share/locale 9 10all: audit2why 11 12audit2why: 13 ln -sf audit2allow audit2why 14 15test: all 16 @$(PYTHON) test_audit2allow.py -v 17 18install: all 19 -mkdir -p $(BINDIR) 20 install -m 755 audit2allow $(BINDIR) 21 (cd $(BINDIR); ln -sf audit2allow audit2why) 22 install -m 755 sepolgen-ifgen $(BINDIR) 23 -mkdir -p $(MANDIR)/man1 24 install -m 644 audit2allow.1 $(MANDIR)/man1/ 25 install -m 644 audit2why.1 $(MANDIR)/man1/ 26 27clean: 28 rm -f *~ 29 30indent: ; 31 32relabel: ; 33