mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-22 14:02:17 +00:00
0445e65d83
Signed-off-by: Aleksei Nikiforov <darktemplar@basealt.ru>
27 lines
779 B
Makefile
27 lines
779 B
Makefile
# Installation directories.
|
|
LINGUAS ?= ru
|
|
PREFIX ?= /usr
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
MAN3SUBDIR ?= man3
|
|
MAN5SUBDIR ?= man5
|
|
MAN3DIR ?= $(MANDIR)/$(MAN3SUBDIR)
|
|
MAN5DIR ?= $(MANDIR)/$(MAN5SUBDIR)
|
|
|
|
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)
|
|
for lang in $(LINGUAS) ; do \
|
|
if [ -e $${lang}/man3 ] ; then \
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN3SUBDIR) ; \
|
|
install -m 644 $${lang}/man3/*.3 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN3SUBDIR) ; \
|
|
fi ; \
|
|
if [ -e $${lang}/man5 ] ; then \
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
|
|
install -m 644 $${lang}/man5/*.5 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
|
|
fi ; \
|
|
done
|