e15f61e5d2
This patch solves the following issues: - 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>
12 lines
288 B
Makefile
12 lines
288 B
Makefile
# Installation directories.
|
|
PREFIX ?= /usr
|
|
INCDIR ?= $(PREFIX)/include/semanage
|
|
|
|
all:
|
|
|
|
install: all
|
|
test -d $(DESTDIR)$(INCDIR) || install -m 755 -d $(DESTDIR)$(INCDIR)
|
|
install -m 644 $(wildcard semanage/*.h) $(DESTDIR)$(INCDIR)
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard semanage/*.h)
|