source: git/doc/Makefile.am @ b2e095d

stereo-2025warn-only-for-hanging-survey
Last change on this file since b2e095d was b2e095d, checked in by Olly Betts <olly@…>, 12 months ago

Don't create directory for sphinx output

Sphinx will create it for us, and in a parallel build our mkdir
can fail if it races Sphinx.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3pkgdocdir = @PKGDOCDIR@
4
5man_sources = \
6    aven.rst \
7    cavern.rst \
8    diffpos.rst \
9    dump3d.rst \
10    extend.rst \
11    sorterr.rst \
12    survexport.rst \
13    survex.rst
14
15manual_sources = \
16    index.rst \
17    intro.rst \
18    getstart.rst \
19    cmdline.rst \
20    $(man_sources) \
21    datafile.rst \
22    svxhowto.rst \
23    genhowto.rst \
24    compass.rst \
25    maillist.rst \
26    walls.rst \
27    cmap.rst \
28    future.rst
29
30manual_alt = manual.pdf
31
32HTMLFILES= AUTHORS.htm HACKING.htm NEWS.htm OLDNEWS.htm TODO.htm index.htm \
33 3dformat.htm 3dformat-old.htm
34
35NEWS.htm: ../NEWS news2html.pl
36        ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm
37
38OLDNEWS.htm: ../OLDNEWS news2html.pl
39        ./news2html.pl < ../OLDNEWS > OLDNEWS.htm
40
41MAINTAINERCLEANFILES = $(manual_alt) NEWS.htm OLDNEWS.htm
42
43pkgdoc_DATA = $(HTMLFILES) $(manual_alt)
44
45man_MANS = \
46    aven.1 \
47    cavern.1 \
48    diffpos.1 \
49    dump3d.1 \
50    extend.1 \
51    sorterr.1 \
52    survexport.1 \
53    survex.7
54
55EXTRA_DIST = $(HTMLFILES) manual $(manual_alt) \
56 $(manual_sources) conf.py \
57 $(man_MANS) \
58 news2html.pl
59
60# Export these as an environment variables for use by conf.py
61export PKGDOCDIR_EXPANDED
62export VERSION
63
64$(man_MANS): $(man_sources) ../configure.ac
65        $(SPHINX_BUILD) -b man $(srcdir) man.tmp $<
66        mv man.tmp/*.1 man.tmp/*.7 .
67        rm -rf man.tmp
68
69install-data-local: manual
70        $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/manual/_static
71        test ! -d manual -a -d "$(srcdir)/manual" && cd $(srcdir) ; \
72        for p in manual/*.htm manual/*.js manual/_static/*.js manual/_static/*.css ; do \
73          echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdocdir)/$$p"; \
74          $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdocdir)/$$p; \
75        done
76
77uninstall-local:
78        test ! -d manual -a -d "$(srcdir)/manual" && cd $(srcdir) ; \
79        for p in manual/*.htm manual/*.js manual/_static/*.js manual/_static/*.css ; do \
80          echo " rm -f $(DESTDIR)$(pkgdocdir)/$$p"; \
81          rm -f $(DESTDIR)$(pkgdocdir)/$$p; \
82        done
83        -rmdir $(DESTDIR)$(pkgdocdir)/manual/_static
84        -rmdir $(DESTDIR)$(pkgdocdir)/manual
85
86maintainer-clean-local:
87        rm -rf manual "$(srcdir)/manual"
88
89manual: manual/stampfile ../configure.ac
90manual/stampfile: $(manual_sources)
91        rm -rf manual
92        $(SPHINX_BUILD) -b html . manual
93        touch manual/stampfile
94
95manual.pdf: $(manual_sources) ../configure.ac
96        $(SPHINX_BUILD) -M latexpdf $(srcdir) manual.latex
97        mv manual.latex/latex/survex.pdf manual.pdf
98        rm -rf manual.latex
99
100# The rules below aren't used by the build system - they're for "manual" use
101# (ho ho)
102
103manual.html: $(manual_sources) ../configure.ac
104        $(SPHINX_BUILD) -b singlehtml . tmpx
Note: See TracBrowser for help on using the repository browser.