1 2icewm_man1_files = \ 3 icehelp.man \ 4 icesh.man \ 5 icewmbg.man \ 6 icewmhint.man \ 7 icewm.man \ 8 icewm-menu-xrandr.man \ 9 icewm-session.man \ 10 icewm-set-gnomewm.man 11 12icewm_man1_htmls = $(icewm_man1_files:%.man=%.1.html) 13 14doc_DATA = $(icewm_man1_htmls) 15 16extra_man1_files = \ 17 icesound.man \ 18 icewm-menu-fdo.man 19 20extra_man1_htmls = $(extra_man1_files:%.man=%.1.html) 21 22man1_MANS = $(icewm_man1_files) 23 24if BUILD_SOUND 25man1_MANS += icesound.man 26doc_DATA += icesound.1.html 27endif 28 29if BUILD_MENU_FDO 30man1_MANS += icewm-menu-fdo.man 31doc_DATA += icewm-menu-fdo.1.html 32endif 33 34if BUILD_ICEWMTRAY 35man1_MANS += icewmtray.man 36doc_DATA += icewmtray.1.html 37endif 38 39icewm_man5_files = \ 40 icewm-env.man \ 41 icewm-focus_mode.man \ 42 icewm-keys.man \ 43 icewm-menu.man \ 44 icewm-preferences.man \ 45 icewm-prefoverride.man \ 46 icewm-programs.man \ 47 icewm-shutdown.man \ 48 icewm-startup.man \ 49 icewm-theme.man \ 50 icewm-toolbar.man \ 51 icewm-winoptions.man 52 53icewm_man5_htmls = $(icewm_man5_files:%.man=%.5.html) 54 55man5_MANS = $(icewm_man5_files) 56doc_DATA += $(icewm_man5_htmls) 57 58CLEANFILES = \ 59 $(icewm_man1_files) $(extra_man1_files) $(icewm_man5_files) *.bak \ 60 $(icewm_man1_htmls) $(extra_man1_htmls) $(icewm_man5_htmls) *.tmp 61 62EXTRA_DIST = \ 63 icehelp.pod \ 64 icesh.pod \ 65 icesound.pod \ 66 icewmbg.pod \ 67 icewm-env.pod \ 68 icewm-focus_mode.pod \ 69 icewmhint.pod \ 70 icewm-keys.pod \ 71 icewm-menu-fdo.pod \ 72 icewm-menu-xrandr.pod \ 73 icewm-menu.pod \ 74 icewm.pod \ 75 icewm-preferences.pod \ 76 icewm-prefoverride.pod \ 77 icewm-programs.pod \ 78 icewm-session.pod \ 79 icewm-set-gnomewm.pod \ 80 icewm-shutdown.pod \ 81 icewm-startup.pod \ 82 icewm-theme.pod \ 83 icewm-toolbar.pod \ 84 icewmtray.pod \ 85 icewm-winoptions.pod 86 87$(icewm_man1_htmls) $(extra_man1_htmls): %.1.html: %.pod 88 $(AM_V_GEN)pod2html \ 89 --backlink \ 90 --header \ 91 --poderrors \ 92 --index \ 93 --podroot=$(top_builddir) \ 94 --podpath=man \ 95 --htmldir=$(docdir) \ 96 --noindex \ 97 --infile=$< \ 98 --outfile=$@ \ 99 --quiet \ 100 --title="User Commands" && \ 101 $(SED) -i.bak -r \ 102 -e 's,http://man.he.net/man(.)/(ice[^"]*),\2.\1.html,g' \ 103 -e 's,man.he.net/man(.)/([^"]*),manned.org/\2.\1,g' \ 104 -e 's,([^a-z/])/usr/share/icewm,\1$(LIBDIR),' \ 105 -e 's,([^a-z/])/etc/icewm,\1$(CFGDIR),' \ 106 -e 's,([^A-Z/])CFGDIR/,\1$(CFGDIR)/,g' \ 107 -e 's,([^A-Z/])LIBDIR/,\1$(LIBDIR)/,g' \ 108 -e 's,\@CFGDIR\@,$(CFGDIR),g' \ 109 -e 's,<h1,<h2,g' \ 110 -e 's,h1>,h2>,g' \ 111 -e 's,http:,https:,g' $@ && rm -f $@.bak 112 113$(icewm_man5_htmls): %.5.html: %.pod 114 $(AM_V_GEN)pod2html \ 115 --backlink \ 116 --header \ 117 --poderrors \ 118 --index \ 119 --podroot=$(top_builddir) \ 120 --podpath=man \ 121 --htmldir=$(docdir) \ 122 --noindex \ 123 --infile=$< \ 124 --outfile=$@ \ 125 --quiet \ 126 --title="Standards, Environments and Macros" && \ 127 $(SED) -i.bak -r \ 128 -e 's,http://man.he.net/man(.)/(ice[^"]*),\2.\1.html,g' \ 129 -e 's,man.he.net/man(.)/([^"]*),manned.org/\2.\1,g' \ 130 -e 's,([^a-z/])/usr/share/icewm,\1$(LIBDIR),' \ 131 -e 's,([^a-z/])/etc/icewm,\1$(CFGDIR),' \ 132 -e 's,([^A-Z/])CFGDIR/,\1$(CFGDIR)/,g' \ 133 -e 's,([^A-Z/])LIBDIR/,\1$(LIBDIR)/,g' \ 134 -e 's,\@CFGDIR\@,$(CFGDIR),g' \ 135 -e 's,http:,https:,g' $@ && rm -f $@.bak 136 137$(icewm_man1_files) $(extra_man1_files): %.man: %.pod Makefile 138 $(AM_V_GEN)pod2man --center="User Commands" \ 139 --date="$(DATE)" \ 140 --errors="none" \ 141 --fixed="CW" \ 142 --fixedbold="CB" \ 143 --fixeditalic="CI" \ 144 --fixedbolditalic="CX" \ 145 --nourls \ 146 --release="$(PACKAGE) $(VERSION)" \ 147 --section="1" \ 148 $< $@ && \ 149 $(SED) -i.bak -r \ 150 -e 's,([^a-z/])/usr/share/icewm,\1$(LIBDIR),' \ 151 -e 's,([^a-z/])/etc/icewm,\1$(CFGDIR),' \ 152 -e 's,([^A-Z/])CFGDIR/,\1$(CFGDIR)/,g' \ 153 -e 's,([^A-Z/])LIBDIR/,\1$(LIBDIR)/,g' \ 154 -e 's,\@CFGDIR\@,$(CFGDIR),g' $@ && rm -f $@.bak 155 156$(icewm_man5_files): %.man: %.pod Makefile 157 $(AM_V_GEN)pod2man --center="Standards, Environments and Macros" \ 158 --date="$(DATE)" \ 159 --errors="none" \ 160 --fixed="CW" \ 161 --fixedbold="CB" \ 162 --fixeditalic="CI" \ 163 --fixedbolditalic="CX" \ 164 --nourls \ 165 --release="$(PACKAGE) $(VERSION)" \ 166 --section="5" \ 167 $< $@ && \ 168 $(SED) -i.bak -r \ 169 -e 's,([^a-z/])/usr/share/icewm,\1$(LIBDIR),' \ 170 -e 's,([^a-z/])/etc/icewm,\1$(CFGDIR),' \ 171 -e 's,([^A-Z/])CFGDIR/,\1$(CFGDIR)/,g' \ 172 -e 's,([^A-Z/])LIBDIR/,\1$(LIBDIR)/,g' \ 173 -e 's,\@CFGDIR\@,$(CFGDIR),g' $@ && rm -f $@.bak 174 175