File: Makefile

package info (click to toggle)
html2wml 0.4.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 816 kB
  • sloc: perl: 2,380; ansic: 56; makefile: 34; sh: 4
file content (25 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
POD=readme.pod
TITLE:="Html2Wml Documentation"

help: 
	@echo "available targets: "
	@echo "    doc        rebuild the documentation"
	@echo "    install    install the documentation"

install: 
	@install -m 444 *.pod *.html *.pdf $(DOCDIR)/

doc:
	@echo "[ writing html doc ]"
	@pod2html --infile="${POD}" --outfile="readme.html" --title=\"${TITLE}\" --norecurse --index --verbose --css=style.css
	@./mkhtml
	@rm -f pod2htm*.x~~
	@echo "[ writing text doc ]"
	@pod2text ${POD} > readme.txt
	@echo "[ writing nroff doc ]"
	@pod2man --center=\"${TITLE}\" --release=${VERSION} ${POD} > html2wml.man
	@echo "[ writing pdf doc ]"
	@perl -p -e '/=for html/ and <>, <>, next' ${POD} > Html2Wml
	@pod2pdf --verbose 1 --podfile Html2Wml
	@mv Html2Wml.pdf readme.pdf
	@rm Html2Wml