2008-08-19 21:30:36 +02:00
|
|
|
# Installation directories.
|
2018-12-25 16:25:05 +01:00
|
|
|
LINGUAS ?= ru
|
2018-02-14 10:57:05 +01:00
|
|
|
PREFIX ?= /usr
|
2018-12-25 16:25:05 +01:00
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
|
|
MAN3SUBDIR ?= man3
|
|
|
|
MAN5SUBDIR ?= man5
|
|
|
|
MAN3DIR ?= $(MANDIR)/$(MAN3SUBDIR)
|
|
|
|
MAN5DIR ?= $(MANDIR)/$(MAN5SUBDIR)
|
2008-08-19 21:30:36 +02:00
|
|
|
|
2011-09-14 20:54:34 +02:00
|
|
|
all:
|
|
|
|
|
|
|
|
install: all
|
2018-02-14 10:57:05 +01:00
|
|
|
mkdir -p $(DESTDIR)$(MAN3DIR)
|
|
|
|
mkdir -p $(DESTDIR)$(MAN5DIR)
|
|
|
|
install -m 644 man3/*.3 $(DESTDIR)$(MAN3DIR)
|
|
|
|
install -m 644 man5/*.5 $(DESTDIR)$(MAN5DIR)
|
2018-12-25 16:25:05 +01: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}/man5 ] ; then \
|
|
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
|
|
|
|
install -m 644 $${lang}/man5/*.5 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
|
|
|
|
fi ; \
|
|
|
|
done
|