16cd6a6acSopenharmony_ci# Installation directories. 26cd6a6acSopenharmony_ciLINGUAS ?= ru 36cd6a6acSopenharmony_ciPREFIX ?= /usr 46cd6a6acSopenharmony_ciMANDIR ?= $(PREFIX)/share/man 56cd6a6acSopenharmony_ciMAN3SUBDIR ?= man3 66cd6a6acSopenharmony_ciMAN8SUBDIR ?= man8 76cd6a6acSopenharmony_ciMAN3DIR ?= $(MANDIR)/$(MAN3SUBDIR) 86cd6a6acSopenharmony_ciMAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR) 96cd6a6acSopenharmony_ci 106cd6a6acSopenharmony_ciall: 116cd6a6acSopenharmony_ci 126cd6a6acSopenharmony_ciinstall: all 136cd6a6acSopenharmony_ci mkdir -p $(DESTDIR)$(MAN3DIR) 146cd6a6acSopenharmony_ci mkdir -p $(DESTDIR)$(MAN8DIR) 156cd6a6acSopenharmony_ci install -m 644 man3/*.3 $(DESTDIR)$(MAN3DIR) 166cd6a6acSopenharmony_ci install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR) 176cd6a6acSopenharmony_ci for lang in $(LINGUAS) ; do \ 186cd6a6acSopenharmony_ci if [ -e $${lang}/man3 ] ; then \ 196cd6a6acSopenharmony_ci mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN3SUBDIR) ; \ 206cd6a6acSopenharmony_ci install -m 644 $${lang}/man3/*.3 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN3SUBDIR) ; \ 216cd6a6acSopenharmony_ci fi ; \ 226cd6a6acSopenharmony_ci if [ -e $${lang}/man8 ] ; then \ 236cd6a6acSopenharmony_ci mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \ 246cd6a6acSopenharmony_ci install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \ 256cd6a6acSopenharmony_ci fi ; \ 266cd6a6acSopenharmony_ci done 27