2 MAN1PAGES = bdfimplode.1 hex2bdf.1 hex2sfd.1 \
3 hexbraille.1 hexdraw.1 hexmerge.1 johab2ucs2.1 \
4 unibdf2hex.1 unibmp2hex.1 unicoverage.1 unidup.1 \
5 unifontpic.1 unifontchojung.1 unifontksx.1 unigencircles.1 \
6 unigenwidth.1 unihexgen.1 unihex2bmp.1 unipagecount.1
11 # $(PREFIX) is defined in the top-level Makefile or on the command line
12 # to override the setting below.
15 INSTALLDIR = $(PREFIX)/share/man
18 # Set "COMPRESS = 0" to install uncompressed man pages (the default), or
19 # override on the command line.
21 # Set "COMPRESS = 1" or anything else non-zero to install gzipped man pages.
28 install -m0755 -d $(INSTALLDIR)
29 install -m0755 -d $(INSTALLDIR)/man1
30 install -m0755 -d $(INSTALLDIR)/man5
31 for i in $(MAN1PAGES) ; do \
32 if [ $(COMPRESS) = 0 ] ; then \
33 install -m0644 $(MAN1PAGES) $(INSTALLDIR)/man1 ; \
35 gzip -f -9 < $$i >$$i.gz ; \
37 mv $$i.gz $(INSTALLDIR)/man1 ; \
40 for i in $(MAN5PAGES) ; do \
41 if [ $(COMPRESS) = 0 ] ; then \
42 install -m0644 $(MAN5PAGES) $(INSTALLDIR)/man5 ; \
44 gzip -f -9 < $$i >$$i.gz ; \
46 mv $$i.gz $(INSTALLDIR)/man5 ; \
54 .PHONY: all install clean distclean