Home | History | Annotate | Download | only in audit2allow
      1 PYTHON ?= python
      2 
      3 # Installation directories.
      4 PREFIX ?= $(DESTDIR)/usr
      5 BINDIR ?= $(PREFIX)/bin
      6 LIBDIR ?= $(PREFIX)/lib
      7 MANDIR ?= $(PREFIX)/share/man
      8 LOCALEDIR ?= /usr/share/locale
      9 
     10 all: audit2why
     11 
     12 audit2why:
     13 	ln -sf audit2allow audit2why
     14 
     15 test: all
     16 	@$(PYTHON) test_audit2allow.py -v
     17 
     18 install: 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 
     27 clean:
     28 	rm -f *~
     29 
     30 indent: ;
     31 
     32 relabel: ;
     33