18 lines
536 B
Makefile
18 lines
536 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
INCDIR ?= $(PREFIX)/include/sepol
|
|
CILDIR ?= ../cil
|
|
|
|
all:
|
|
|
|
install: all
|
|
test -d $(INCDIR) || install -m 755 -d $(INCDIR)
|
|
test -d $(INCDIR)/policydb || install -m 755 -d $(INCDIR)/policydb
|
|
test -d $(INCDIR)/cil || install -m 755 -d $(INCDIR)/cil
|
|
install -m 644 $(wildcard sepol/*.h) $(INCDIR)
|
|
install -m 644 $(wildcard sepol/policydb/*.h) $(INCDIR)/policydb
|
|
install -m 644 $(wildcard $(CILDIR)/include/cil/*.h) $(INCDIR)/cil
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard sepol/*.h)
|