verilog: add sv_maps iterators
[ghdl-vlg.git] / doc / Makefile
blob0bad2ab5ba633ba7c55da13ddfa56cf9689e3689
1 CP=cp
3 # Sphinx options.
4 SPHINXOPTS =
5 SPHINXBUILD = sphinx-build
6 PAPER =
7 BUILDDIR = _build
9 PAPEROPT_a4 = -D latex_paper_size=a4
10 PAPEROPT_letter = -D latex_paper_size=letter
11 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -T -D language=en $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
13 all: ghdl.info
15 .PHONY: ghdl.texi
17 #---
19 man:
20 $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
22 #---
24 html:
25 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
27 #---
29 latex:
30 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
32 #---
34 texi: ghdl.texi
35 ghdl.texi:
36 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
37 $(CP) $(BUILDDIR)/texinfo/GHDL.texi $@
39 info: ghdl.info
40 ghdl.info: ghdl.texi
41 makeinfo -o $@ $<
43 dvi: ghdl.dvi
44 ghdl.dvi: ghdl.texi
45 texi2dvi $<
47 ghdl.ps: ghdl.dvi
48 dvips $<
50 pdf: ghdl.pdf
51 ghdl.pdf: ghdl.dvi
52 dvipdf $<
54 #---
56 clean:
57 $(RM) *~ *.dvi *.info ghdl.aux ghdl.cp ghdl.fn ghdl.ky ghdl.log
58 $(RM) ghdl.pdf ghdl.pg ghdl.toc ghdl.tp ghdl.vr
59 $(RM) -rf build
61 maintainer-clean: clean
62 $(RM) ghdl.texi