]> git.lyx.org Git - lyx.git/blob - lib/doc/Makefile.am
e8f1de3a7aab162cbe3ac2153ffea037b6c5dd76
[lyx.git] / lib / doc / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += $(tocfiles)
4
5 EXTRA_DIST = depend.py doc_toc.py README.Documentation $(DEPENDFILE) $(docfiles)
6
7 clipartdocdir = $(pkgdatadir)/doc/clipart
8 dist_clipartdoc_DATA = \
9         clipart/escher-lsd.eps \
10         clipart/mobius.eps \
11         clipart/platypus.eps \
12         clipart/BoxInsetDefaultQt4.png \
13         clipart/ChildDocumentQt4.png \
14         clipart/CommentNoteImageQt4.png \
15         clipart/endnotes.pdf \
16         clipart/ExternalMaterialQt4.png \
17         clipart/floatQt4.png \
18         clipart/footnoteQt4.png \
19         clipart/FramedNoteImageQt4.png \
20         clipart/GreyedOutNoteImageQt4.png \
21         clipart/labelQt4.png \
22         clipart/LyXNoteImageQt4.png \
23         clipart/referenceQt4.png \
24         clipart/ShadedNoteImageQt4.png \
25         clipart/without_fntright.pdf \
26         clipart/with_fntright.pdf
27
28 csdocdir = $(pkgdatadir)/doc/cs
29 dist_csdoc_DATA = \
30         cs/Tutorial.lyx
31
32 dadocdir = $(pkgdatadir)/doc/da
33 dist_dadoc_DATA = \
34         da/Intro.lyx
35
36 dedocdir = $(pkgdatadir)/doc/de
37 dist_dedoc_DATA = \
38         de/Customization.lyx \
39         de/Extended.lyx \
40         de/FAQ.lyx \
41         de/Intro.lyx \
42         de/Tutorial.lyx \
43         de/UserGuide.lyx
44
45 esdocdir = $(pkgdatadir)/doc/es
46 dist_esdoc_DATA = \
47         es/DocumentoPostizo1.lyx \
48         es/DocumentoPostizo2.lyx \
49         es/DocumentoTextoPostizo.txt \
50         es/EmbeddedObjects.lyx \
51         es/Intro.lyx \
52         es/Tutorial.lyx
53
54 esclipartdocdir = $(pkgdatadir)/doc/es/clipart
55 dist_esclipartdoc_DATA = \
56         es/clipart/ComentNotaImagenQt4.png \
57         es/clipart/CuadroMinipagQt4.png \
58         es/clipart/DocumentoHijoQt4.png \
59         es/clipart/etiquetaQt4.png \
60         es/clipart/flotanteQt4.png \
61         es/clipart/GrisNotaImagenQt4.png \
62         es/clipart/MaterialExternoQt4.png \
63         es/clipart/NotaEnmarcadaImg.png \
64         es/clipart/NotaLyXImagenQt4.png \
65         es/clipart/notapieQt4.png \
66         es/clipart/NotaSombreadaImg.png \
67         es/clipart/referenciaQt4.png
68
69 eudocdir = $(pkgdatadir)/doc/eu
70 dist_eudoc_DATA = \
71         eu/Customization.lyx \
72         eu/Extended.lyx \
73         eu/FAQ.lyx \
74         eu/Intro.lyx \
75         eu/Tutorial.lyx \
76         eu/UserGuide.lyx
77
78 frdocdir = $(pkgdatadir)/doc/fr
79 dist_frdoc_DATA = \
80         fr/Customization.lyx \
81         fr/Extended.lyx \
82         fr/FAQ.lyx \
83         fr/Intro.lyx \
84         fr/Tutorial.lyx \
85         fr/UserGuide.lyx
86
87 gldocdir = $(pkgdatadir)/doc/gl
88 dist_gldoc_DATA = \
89         gl/Intro.lyx \
90         gl/Tutorial.lyx
91
92 hedocdir = $(pkgdatadir)/doc/he
93 dist_hedoc_DATA = \
94         he/Intro.lyx \
95         he/Tutorial.lyx
96
97 hudocdir = $(pkgdatadir)/doc/hu
98 dist_hudoc_DATA = \
99         hu/Intro.lyx \
100         hu/Tutorial.lyx
101
102 itdocdir = $(pkgdatadir)/doc/it
103 dist_itdoc_DATA = \
104         it/Customization.lyx \
105         it/Intro.lyx \
106         it/Tutorial.lyx \
107         it/UserGuide.lyx
108
109 nldocdir = $(pkgdatadir)/doc/nl
110 dist_nldoc_DATA = \
111         nl/Intro.lyx \
112         nl/Tutorial.lyx
113
114 nbdocdir = $(pkgdatadir)/doc/nb
115 dist_nbdoc_DATA = \
116         nb/Intro.lyx
117
118 pldocdir = $(pkgdatadir)/doc/pl
119 dist_pldoc_DATA = \
120         pl/Extended.lyx \
121         pl/Intro.lyx \
122         pl/Tutorial.lyx
123
124 ptdocdir = $(pkgdatadir)/doc/pt
125 dist_ptdoc_DATA = \
126         pt/Intro.lyx \
127         pt/Tutorial.lyx
128
129 rodocdir = $(pkgdatadir)/doc/ro
130 dist_rodoc_DATA = \
131         ro/Intro.lyx
132
133 rudocdir = $(pkgdatadir)/doc/ru
134 dist_rudoc_DATA = \
135         ru/FAQ.lyx \
136         ru/Intro.lyx \
137         ru/Tutorial.lyx
138
139 skdocdir = $(pkgdatadir)/doc/sk
140 dist_skdoc_DATA = \
141         sk/Tutorial.lyx \
142         sk/UserGuide.lyx
143
144 sldocdir = $(pkgdatadir)/doc/sl
145 dist_sldoc_DATA = \
146         sl/Intro.lyx \
147         sl/Tutorial.lyx
148
149 svdocdir = $(pkgdatadir)/doc/sv
150 dist_svdoc_DATA = \
151         sv/Intro.lyx \
152         sv/Tutorial.lyx
153
154 docdir = $(pkgdatadir)/doc
155 dist_doc_DATA = \
156         Customization.lyx \
157         DocStyle.lyx \
158         DummyTextDocument.txt \
159         DummyDocument1.lyx \
160         DummyDocument2.lyx \
161         EmbeddedObjects.lyx \
162         Extended.lyx \
163         FAQ.lyx \
164         Intro.lyx \
165         LaTeXConfig.lyx.in \
166         Reference.lyx \
167         Tutorial.lyx \
168         UserGuide.lyx
169
170 doc_DATA = $(docfiles) 
171
172 DEPENDFILE = $(srcdir)/Makefile.depend
173 # include $(DEPENDFILE) does not work because automake is too limited.
174 include $(srcdir)/Makefile.depend
175
176 TOCs : $(DEPENDFILE) $(tocfiles)
177         @echo Made TOCs succesfully.
178
179 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
180 # new doc files might have been added
181 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
182         python $(srcdir)/depend.py > $(DEPENDFILE)
183
184 # The TOCs are not built for the install and dist targets if they don't exist
185 # for some weird reason.
186 # Make complains although we have rules for them in $(DEPENDFILE), so we
187 # must not include the TOCs in $(docfiles) and have to use the install and
188 # dist hooks below.
189 dist-hook: $(tocfiles)
190         for i in $(tocfiles); \
191         do \
192                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
193                 else file="$$i"; fi; \
194                 cp -p "$$file" "$(distdir)"; \
195         done
196 install-data-hook: $(tocfiles)
197         for i in $(tocfiles); \
198         do \
199                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
200                 else file="$$i"; fi; \
201                 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
202         done
203
204 uninstall-local:
205         for i in $(tocfiles); \
206         do \
207                 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
208         done
209
210 .PHONY: TOCs