root / Makefile @ master
History | View | Annotate | Download (1.5 kB)
1 | 91d0ded3 | Alexandros Kosiaris | flowspytag = $(shell git describe --abbrev=0) |
---|---|---|---|
2 | c15e41ac | Alexandros Kosiaris | flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]+\.){1,10}[0-9]+' | sed -e 's/\./_/g') |
3 | 796ee84e | Alexandros Kosiaris | name = $(shell basename $(shell pwd)) |
4 | 91d0ded3 | Alexandros Kosiaris | |
5 | 51ce199a | Leonidas Poulopoulos | # You can set these variables from the command line. |
6 | 51ce199a | Leonidas Poulopoulos | SPHINXOPTS = |
7 | 51ce199a | Leonidas Poulopoulos | SPHINXBUILD = sphinx-build |
8 | 51ce199a | Leonidas Poulopoulos | PAPER = |
9 | 51ce199a | Leonidas Poulopoulos | BUILDDIR = doc/build |
10 | 51ce199a | Leonidas Poulopoulos | |
11 | 51ce199a | Leonidas Poulopoulos | # Internal variables. |
12 | 51ce199a | Leonidas Poulopoulos | PAPEROPT_a4 = -D latex_paper_size=a4 |
13 | 51ce199a | Leonidas Poulopoulos | PAPEROPT_letter = -D latex_paper_size=letter |
14 | 51ce199a | Leonidas Poulopoulos | ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) doc/source |
15 | 51ce199a | Leonidas Poulopoulos | |
16 | 51ce199a | Leonidas Poulopoulos | .PHONY: help dist distclean docclean html latex text |
17 | 51ce199a | Leonidas Poulopoulos | |
18 | 51ce199a | Leonidas Poulopoulos | help: |
19 | 51ce199a | Leonidas Poulopoulos | @echo "Please use \`make <target>' where <target> is one of" |
20 | 51ce199a | Leonidas Poulopoulos | @echo " html to make standalone HTML files" |
21 | 51ce199a | Leonidas Poulopoulos | @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" |
22 | 51ce199a | Leonidas Poulopoulos | @echo " text to make standalone txt files" |
23 | 91d0ded3 | Alexandros Kosiaris | |
24 | 91d0ded3 | Alexandros Kosiaris | dist: |
25 | 796ee84e | Alexandros Kosiaris | git archive --format tar --prefix $(name)-$(flowspyver)/ -o $(name)-$(flowspyver).tar $(flowspytag) |
26 | 796ee84e | Alexandros Kosiaris | gzip -f $(name)-$(flowspyver).tar |
27 | 51ce199a | Leonidas Poulopoulos | |
28 | 91d0ded3 | Alexandros Kosiaris | distclean: |
29 | 91d0ded3 | Alexandros Kosiaris | @rm -f *tar.gz |
30 | 91d0ded3 | Alexandros Kosiaris | |
31 | 51ce199a | Leonidas Poulopoulos | docclean: |
32 | 51ce199a | Leonidas Poulopoulos | -rm -rf $(BUILDDIR)/* |
33 | 51ce199a | Leonidas Poulopoulos | |
34 | 51ce199a | Leonidas Poulopoulos | html: |
35 | 51ce199a | Leonidas Poulopoulos | $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html |
36 | 51ce199a | Leonidas Poulopoulos | @echo |
37 | 51ce199a | Leonidas Poulopoulos | @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." |
38 | 51ce199a | Leonidas Poulopoulos | |
39 | 51ce199a | Leonidas Poulopoulos | latex: |
40 | 51ce199a | Leonidas Poulopoulos | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex |
41 | 51ce199a | Leonidas Poulopoulos | @echo |
42 | 51ce199a | Leonidas Poulopoulos | @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." |
43 | 51ce199a | Leonidas Poulopoulos | @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ |
44 | 51ce199a | Leonidas Poulopoulos | "run these through (pdf)latex." |
45 | 51ce199a | Leonidas Poulopoulos | |
46 | 51ce199a | Leonidas Poulopoulos | text: |
47 | 51ce199a | Leonidas Poulopoulos | $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text |
48 | 51ce199a | Leonidas Poulopoulos | @echo |
49 | 51ce199a | Leonidas Poulopoulos | @echo "Done" |