summaryrefslogtreecommitdiff
path: root/doc/makefile
blob: cb5f7595dd6b3032ffa7ebf29b42337a08fc6550 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
MKHTML=mkdoc
MKHTML_OPT=--doctype article --param toc.section.depth=1 --target html --stylesheet standard 

SRC=.


all: manual.html quickstart.html features.html FAQ.html beginner_pylint_tutorial.html examples man

FAQ.html: ${SRC}/FAQ.txt
	${MKHTML} ${MKHTML_OPT} ${SRC}/FAQ.txt

quickstart.html: ${SRC}/quickstart.txt
	${MKHTML} ${MKHTML_OPT} ${SRC}/quickstart.txt

manual.html: ${SRC}/manual.txt ${SRC}/FAQ.txt
	${MKHTML} ${MKHTML_OPT} ${SRC}/manual.txt

beginner_pylint_tutorial.html: ${SRC}/beginner_pylint_tutorial.txt
	${MKHTML} ${MKHTML_OPT} ${SRC}/beginner_pylint_tutorial.txt

features.html:
	chmod u+w ${SRC}/features.txt
	echo "Pylint features" > ${SRC}/features.txt
	echo "===============" >> ${SRC}/features.txt
	echo "" >> ${SRC}/features.txt
	echo ".. generated by pylint --full-documentation" >> ${SRC}/features.txt
	echo "" >> ${SRC}/features.txt
	echo ".. contents::" >> ${SRC}/features.txt
	echo "" >> ${SRC}/features.txt
	pylint --full-documentation >> ${SRC}/features.txt
	${MKHTML} ${MKHTML_OPT} ${SRC}/features.txt

examples:
	chmod u+w ../examples/pylintrc
	pylint --generate-rcfile > ../examples/pylintrc

man:
	chmod u+w ../man/pylint.1
	pylint --generate-man > ../man/pylint.1

clean:
	rm -f *.html

.PHONY: features.html