98c753441f43818ec4c1d5b71c19c940b3acb238
[oweals/gnunet.git] / doc / tutorial / Makefile.am
1 # This Makefile.am is in the public domain
2 docdir = $(datadir)/doc/gnunet/
3
4 if ACTIVATE_TEXINFO4
5 # NOTE: While GNU makeinfo 6.5 supports --css-ref=URL,
6 # makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
7 # base) does only support --css-include=FILE.
8 # The only difference is a shorter html output and
9 # in 6.5 the ability to use refs instead of include.
10 # We prefer not to break builds in this case, so
11 # we use the include version which is backwards compatible
12 # and upwards compatible, while the ref variant is neither.
13 AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
14 else
15 # In the 5.x version they added `--split=chapters|sections` in
16 # addition to `--split=nodes`.
17 # Hold on to your hats: In version 6.5 this is already removed, ffs.
18 # GNU Texinfo, please be more consistent than 1 version in switches.
19 # This however is compatible to version 5.2. Thanks, I hate it.
20 # AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
21 AM_MAKEINFOHTMLFLAGS = --split --css-ref="../style.css" --css-ref="../manual.css"
22 endif
23
24 gnunet_tutorial_examples =                                      \
25         examples/001.c                                                  \
26         examples/002.c                                                  \
27         examples/003.c                                                  \
28         examples/004.c                                                  \
29         examples/005.c                                                  \
30         examples/006.c                                                  \
31         examples/007.c                                                  \
32         examples/008.c                                                  \
33         examples/009.c                                                  \
34         examples/010.c                                                  \
35         examples/011.c                                                  \
36         examples/012.c                                                  \
37         examples/013.c                                                  \
38         examples/013.1.c                                                \
39         examples/014.c                                                  \
40         examples/015.c                                                  \
41         examples/016.c                                                  \
42         examples/017.c                                                  \
43         examples/018.c                                                  \
44         examples/019.c                                                  \
45         examples/020.c                                                  \
46         examples/021.c                                                  \
47         examples/022.c                                                  \
48         examples/023.c                                                  \
49         examples/024.c                                                  \
50         examples/025.Makefile.am                                \
51         examples/026.c                          \
52         examples/testbed_test.c
53
54 info_TEXINFOS = \
55         gnunet_tutorial.texi
56
57 gnunet_tutorial_TEXINFOS = \
58         fdl-1.3.texi                                            \
59         gpl-3.0.texi                                            \
60         agpl-3.0.texi                                           \
61         version.texi
62
63 EXTRA_DIST = \
64         $(gnunet_tutorial_TEXINFOS)     \
65         $(gnunet_tutorial_examples)     \
66         htmlxref.cnf \
67         run-gendocs.sh \
68         docstyle.css \
69     manual.css \
70     reset.css \
71     style.css
72
73
74 DISTCLEANFILES = \
75         gnunet-tutorial.cps \
76         fdl-1.3.cps \
77         agpl-3.0.cps \
78         gpl-3.0.cps
79
80
81 CLEANFILES= \
82     stamp-vti \
83     version.texi \
84     gnunet-tutorial.t2p \
85     $(DISTCLEANFILES)
86
87 doc-all-install:
88         @mkdir -p $(DESTDIR)/$(docdir)
89         @mkdir -p $(DESTDIR)/$(infoimagedir)
90         @mkdir -p $(DESTDIR)/$(infodir)
91         @install -m 0755 gnunet-tutorial.pdf $(DESTDIR)/$(docdir)
92         @install -m 0755 gnunet-tutorial.info $(DESTDIR)/$(infodir)
93         @install gnunet-tutorial.html $(DESTDIR)/$(docdir)
94
95 doc-gendoc-install:
96         @mkdir -p $(DESTDIR)/$(docdir)
97         @cp -r manual $(DESTDIR)/$(docdir)