1 # Installation directories. 2 PREFIX ?= /usr 3 INCDIR = $(PREFIX)/include/sepol 4 CILDIR ?= ../cil 5 6 all: 7 8 install: all 9 test -d $(DESTDIR)$(INCDIR) || install -m 755 -d $(DESTDIR)$(INCDIR) 10 test -d $(DESTDIR)$(INCDIR)/policydb || install -m 755 -d $(DESTDIR)$(INCDIR)/policydb 11 test -d $(DESTDIR)$(INCDIR)/cil || install -m 755 -d $(DESTDIR)$(INCDIR)/cil 12 install -m 644 $(wildcard sepol/*.h) $(DESTDIR)$(INCDIR) 13 install -m 644 $(wildcard sepol/policydb/*.h) $(DESTDIR)$(INCDIR)/policydb 14 install -m 644 $(wildcard $(CILDIR)/include/cil/*.h) $(DESTDIR)$(INCDIR)/cil 15 16 indent: 17 ../../scripts/Lindent $(wildcard sepol/*.h) 18