• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Installation directories.
2LINGUAS ?= ru
3PREFIX ?= /usr
4MANDIR ?=  $(PREFIX)/share/man
5MAN8SUBDIR ?= man8
6MAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR)
7
8all:
9
10install: all
11	mkdir -p $(DESTDIR)$(MAN8DIR)
12	install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR)
13	for lang in $(LINGUAS) ; do \
14		if [ -e $${lang}/man8 ] ; then \
15			mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
16			install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
17		fi ; \
18	done
19
20clean:
21	-rm -f *~ \#*
22	-rm -f man8/*~ man8/\#*
23