2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
2023-08-14 12:57:37 +00:00
|
|
|
LINGUAS ?=
|
2018-02-14 09:57:03 +00:00
|
|
|
PREFIX ?= /usr
|
2018-12-25 15:25:05 +00:00
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
|
|
MAN3SUBDIR ?= man3
|
|
|
|
MAN8SUBDIR ?= man8
|
|
|
|
MAN3DIR ?= $(MANDIR)/$(MAN3SUBDIR)
|
|
|
|
MAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR)
|
2008-08-19 19:30:36 +00:00
|
|
|
|
2011-09-14 18:54:34 +00:00
|
|
|
all:
|
|
|
|
|
|
|
|
install: all
|
2018-02-14 09:57:03 +00:00
|
|
|
mkdir -p $(DESTDIR)$(MAN3DIR)
|
|
|
|
mkdir -p $(DESTDIR)$(MAN8DIR)
|
|
|
|
install -m 644 man3/*.3 $(DESTDIR)$(MAN3DIR)
|
|
|
|
install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR)
|
2018-12-25 15:25:05 +00:00
|
|
|
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}/man8 ] ; then \
|
|
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
|
|
|
|
install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
|
|
|
|
fi ; \
|
|
|
|
done
|