| 1 | POD=readme.pod |
| 2 | TITLE:="Html2Wml Documentation" |
| 3 | |
| 4 | help: |
| 5 | @echo "available targets: " |
| 6 | @echo " doc rebuild the documentation" |
| 7 | @echo " install install the documentation" |
| 8 | |
| 9 | install: |
| 10 | @install -m 444 *.pod *.html *.pdf $(DOCDIR)/ |
| 11 | |
| 12 | doc: |
| 13 | @echo "[ writing html doc ]" |
| 14 | @pod2html --infile="${POD}" --outfile="readme.html" --title=\"${TITLE}\" --norecurse --index --verbose --css=style.css |
| 15 | @./mkhtml |
| 16 | @rm -f pod2htm*.x~~ |
| 17 | @echo "[ writing text doc ]" |
| 18 | @pod2text ${POD} > readme.txt |
| 19 | @echo "[ writing nroff doc ]" |
| 20 | @pod2man --center=\"${TITLE}\" --release=${VERSION} ${POD} > html2wml.man |
| 21 | @echo "[ writing pdf doc ]" |
| 22 | @perl -p -e '/=for html/ and <>, <>, next' ${POD} > Html2Wml |
| 23 | @pod2pdf --verbose 1 --podfile Html2Wml |
| 24 | @mv Html2Wml.pdf readme.pdf |
| 25 | @rm Html2Wml |