f8532f1773
This patch solves the following issues: - The pkg-config files generates odd paths when using DESTDIR without PREFIX - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
17 lines
615 B
Makefile
17 lines
615 B
Makefile
# Installation directories.
|
|
PREFIX ?= /usr
|
|
INCDIR = $(PREFIX)/include/sepol
|
|
CILDIR ?= ../cil
|
|
|
|
all:
|
|
|
|
install: all
|
|
test -d $(DESTDIR)$(INCDIR) || install -m 755 -d $(DESTDIR)$(INCDIR)
|
|
test -d $(DESTDIR)$(INCDIR)/policydb || install -m 755 -d $(DESTDIR)$(INCDIR)/policydb
|
|
test -d $(DESTDIR)$(INCDIR)/cil || install -m 755 -d $(DESTDIR)$(INCDIR)/cil
|
|
install -m 644 $(wildcard sepol/*.h) $(DESTDIR)$(INCDIR)
|
|
install -m 644 $(wildcard sepol/policydb/*.h) $(DESTDIR)$(INCDIR)/policydb
|
|
install -m 644 $(wildcard $(CILDIR)/include/cil/*.h) $(DESTDIR)$(INCDIR)/cil
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard sepol/*.h)
|