selinux/python/audit2allow/Makefile
Stephen Smalley 48dc232627 Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2016-11-16 11:19:50 -05:00

33 lines
601 B
Makefile

PYTHON ?= python
# Installation directories.
PREFIX ?= $(DESTDIR)/usr
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
MANDIR ?= $(PREFIX)/share/man
LOCALEDIR ?= /usr/share/locale
all: audit2why
audit2why:
ln -sf audit2allow audit2why
test: all
@$(PYTHON) test_audit2allow.py -v
install: all
-mkdir -p $(BINDIR)
install -m 755 audit2allow $(BINDIR)
(cd $(BINDIR); ln -sf audit2allow audit2why)
install -m 755 sepolgen-ifgen $(BINDIR)
-mkdir -p $(MANDIR)/man1
install -m 644 audit2allow.1 $(MANDIR)/man1/
install -m 644 audit2why.1 $(MANDIR)/man1/
clean:
rm -f *~
indent: ;
relabel: ;