Mercurial > evolve
annotate docs/makefile @ 5658:398a3f0ca07a stable
packaging: use automatic variables for running test2rst.py
This script can take either file or directory path. It makes sense to only run
the script for the specific file that make tries to build and not the whole
tutorials/ directory.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 09 Nov 2020 22:37:05 +0800 |
parents | 187bd6ade465 |
children | 9d6c3e227455 |
rev | line source |
---|---|
4631
150be007f421
docs: add SPHINXBUILD make variable
Faheem Mitha <faheem@faheem.info>
parents:
2960
diff
changeset
|
1 SPHINXBUILD ?= sphinx-build |
233 | 2 |
5386
77729ad7cb0c
makefile: make all non-file targets phony
Anton Shestakov <av6@dwimlabs.net>
parents:
4631
diff
changeset
|
3 .PHONY: all |
2824
d0e3a8e0b62c
docs: move the topic tutorial in the documentation
Boris Feld <boris.feld@octobus.net>
parents:
765
diff
changeset
|
4 all: tutorials/tutorial.rst tutorials/topic-tutorial.rst static/logo-evolve.ico |
4631
150be007f421
docs: add SPHINXBUILD make variable
Faheem Mitha <faheem@faheem.info>
parents:
2960
diff
changeset
|
5 $(SPHINXBUILD) . ../html/ |
233 | 6 |
2960
1a4f26eec0af
test2rst: ignore the #if/#endif line in the output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2824
diff
changeset
|
7 tutorials/tutorial.rst: tutorials/tutorial.t test2rst.py |
5658
398a3f0ca07a
packaging: use automatic variables for running test2rst.py
Anton Shestakov <av6@dwimlabs.net>
parents:
5406
diff
changeset
|
8 python test2rst.py $< |
557
41688ca951e7
doc: add a logo
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
242
diff
changeset
|
9 |
2960
1a4f26eec0af
test2rst: ignore the #if/#endif line in the output
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2824
diff
changeset
|
10 tutorials/topic-tutorial.rst: tutorials/topic-tutorial.t test2rst.py |
5658
398a3f0ca07a
packaging: use automatic variables for running test2rst.py
Anton Shestakov <av6@dwimlabs.net>
parents:
5406
diff
changeset
|
11 python test2rst.py $< |
2824
d0e3a8e0b62c
docs: move the topic tutorial in the documentation
Boris Feld <boris.feld@octobus.net>
parents:
765
diff
changeset
|
12 |
558
11c5f734d64e
docs: fix makefile
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
557
diff
changeset
|
13 static/logo-evolve.ico: static/logo-evolve.svg |
5387
6664e9f44bca
makefile: use fancy automatic variables
Anton Shestakov <av6@dwimlabs.net>
parents:
5386
diff
changeset
|
14 convert -resize 36x36 $< $@ |
5406
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
15 |
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
16 .PHONY: clean |
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
17 clean: |
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
18 rm -rf ../html |
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
19 rm -f static/logo-evolve.ico |
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
20 rm -f tutorials/tutorial.rst |
187bd6ade465
packaging: move docs cleanup target from debian/rules to docs/makefile
Anton Shestakov <av6@dwimlabs.net>
parents:
5387
diff
changeset
|
21 rm -f tutorials/topic-tutorial.rst |