mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-14 10:05:02 +00:00
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>
14 lines
290 B
Makefile
14 lines
290 B
Makefile
# Installation directories.
|
|
PREFIX ?= /usr
|
|
MAN3DIR ?= $(PREFIX)/share/man/man3
|
|
MAN5DIR ?= $(PREFIX)/share/man/man5
|
|
|
|
all:
|
|
|
|
install: all
|
|
mkdir -p $(DESTDIR)$(MAN3DIR)
|
|
mkdir -p $(DESTDIR)$(MAN5DIR)
|
|
install -m 644 man3/*.3 $(DESTDIR)$(MAN3DIR)
|
|
install -m 644 man5/*.5 $(DESTDIR)$(MAN5DIR)
|
|
|