b24980ec07
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>
18 lines
332 B
Makefile
18 lines
332 B
Makefile
# Installation directories.
|
|
PREFIX ?= /usr
|
|
INCDIR = $(PREFIX)/include/selinux
|
|
|
|
all:
|
|
|
|
install: all
|
|
test -d $(DESTDIR)$(INCDIR) || install -m 755 -d $(DESTDIR)$(INCDIR)
|
|
install -m 644 $(wildcard selinux/*.h) $(DESTDIR)$(INCDIR)
|
|
|
|
relabel:
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard selinux/*.h)
|
|
|
|
distclean clean:
|
|
-rm -f selinux/*~
|
|
|