2010-07-21 19:40:00 +00:00
|
|
|
# Installation directories.
|
2023-08-14 12:57:37 +00:00
|
|
|
LINGUAS ?=
|
2018-02-14 09:57:08 +00:00
|
|
|
PREFIX ?= /usr
|
2018-12-25 15:25:05 +00:00
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
2019-07-15 14:45:01 +00:00
|
|
|
MAN5SUBDIR ?= man5
|
|
|
|
MAN5DIR ?= $(MANDIR)/$(MAN5SUBDIR)
|
2018-12-25 15:25:05 +00:00
|
|
|
MAN8SUBDIR ?= man8
|
|
|
|
MAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR)
|
2010-07-21 19:40:00 +00:00
|
|
|
|
2011-09-14 18:54:34 +00:00
|
|
|
all:
|
|
|
|
|
|
|
|
install: all
|
2019-07-15 14:45:01 +00:00
|
|
|
mkdir -p $(DESTDIR)$(MAN5DIR)
|
2018-02-14 09:57:08 +00:00
|
|
|
mkdir -p $(DESTDIR)$(MAN8DIR)
|
2019-07-15 14:45:01 +00:00
|
|
|
install -m 644 man5/*.5 $(DESTDIR)$(MAN5DIR)
|
2018-02-14 09:57:08 +00:00
|
|
|
install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR)
|
2018-12-25 15:25:05 +00:00
|
|
|
for lang in $(LINGUAS) ; do \
|
2019-07-15 14:45:01 +00:00
|
|
|
if [ -e $${lang}/man5 ] ; then \
|
|
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
|
|
|
|
install -m 644 $${lang}/man5/*.5 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
|
|
|
|
fi ; \
|
2018-12-25 15:25:05 +00:00
|
|
|
if [ -e $${lang}/man8 ] ; then \
|
|
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
|
|
|
|
install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
2010-07-21 19:40:00 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *~ \#*
|
2019-07-15 14:45:01 +00:00
|
|
|
-rm -f man5/*~ man5/\#*
|
2010-07-21 19:40:00 +00:00
|
|
|
-rm -f man8/*~ man8/\#*
|