]> git.lyx.org Git - lyx.git/blob - lib/doc/Makefile.am
44688b94b8ce4f8c91d21dbc7b46a8fe80e12d31
[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/Extended.lyx \
52         es/Intro.lyx \
53         es/Tutorial.lyx
54
55 esclipartdocdir = $(pkgdatadir)/doc/es/clipart
56 dist_esclipartdoc_DATA = \
57         es/clipart/ComentNotaImagenQt4.png \
58         es/clipart/CuadroMinipagQt4.png \
59         es/clipart/DocumentoHijoQt4.png \
60         es/clipart/etiquetaQt4.png \
61         es/clipart/flotanteQt4.png \
62         es/clipart/GrisNotaImagenQt4.png \
63         es/clipart/MaterialExternoQt4.png \
64         es/clipart/NotaEnmarcadaImg.png \
65         es/clipart/NotaLyXImagenQt4.png \
66         es/clipart/notapieQt4.png \
67         es/clipart/NotaSombreadaImg.png \
68         es/clipart/referenciaQt4.png
69
70 eudocdir = $(pkgdatadir)/doc/eu
71 dist_eudoc_DATA = \
72         eu/Customization.lyx \
73         eu/Extended.lyx \
74         eu/FAQ.lyx \
75         eu/Intro.lyx \
76         eu/Tutorial.lyx \
77         eu/UserGuide.lyx
78
79 frdocdir = $(pkgdatadir)/doc/fr
80 dist_frdoc_DATA = \
81         fr/Customization.lyx \
82         fr/Extended.lyx \
83         fr/FAQ.lyx \
84         fr/Intro.lyx \
85         fr/Tutorial.lyx \
86         fr/UserGuide.lyx
87
88 gldocdir = $(pkgdatadir)/doc/gl
89 dist_gldoc_DATA = \
90         gl/Intro.lyx \
91         gl/Tutorial.lyx
92
93 hedocdir = $(pkgdatadir)/doc/he
94 dist_hedoc_DATA = \
95         he/Intro.lyx \
96         he/Tutorial.lyx
97
98 hudocdir = $(pkgdatadir)/doc/hu
99 dist_hudoc_DATA = \
100         hu/Intro.lyx \
101         hu/Tutorial.lyx
102
103 itdocdir = $(pkgdatadir)/doc/it
104 dist_itdoc_DATA = \
105         it/Customization.lyx \
106         it/Intro.lyx \
107         it/Tutorial.lyx \
108         it/UserGuide.lyx
109
110 nldocdir = $(pkgdatadir)/doc/nl
111 dist_nldoc_DATA = \
112         nl/Intro.lyx \
113         nl/Tutorial.lyx
114
115 nbdocdir = $(pkgdatadir)/doc/nb
116 dist_nbdoc_DATA = \
117         nb/Intro.lyx
118
119 pldocdir = $(pkgdatadir)/doc/pl
120 dist_pldoc_DATA = \
121         pl/Extended.lyx \
122         pl/Intro.lyx \
123         pl/Tutorial.lyx
124
125 ptdocdir = $(pkgdatadir)/doc/pt
126 dist_ptdoc_DATA = \
127         pt/Intro.lyx \
128         pt/Tutorial.lyx
129
130 rodocdir = $(pkgdatadir)/doc/ro
131 dist_rodoc_DATA = \
132         ro/Intro.lyx
133
134 rudocdir = $(pkgdatadir)/doc/ru
135 dist_rudoc_DATA = \
136         ru/FAQ.lyx \
137         ru/Intro.lyx \
138         ru/Tutorial.lyx
139
140 skdocdir = $(pkgdatadir)/doc/sk
141 dist_skdoc_DATA = \
142         sk/Tutorial.lyx \
143         sk/UserGuide.lyx
144
145 sldocdir = $(pkgdatadir)/doc/sl
146 dist_sldoc_DATA = \
147         sl/Intro.lyx \
148         sl/Tutorial.lyx
149
150 svdocdir = $(pkgdatadir)/doc/sv
151 dist_svdoc_DATA = \
152         sv/Intro.lyx \
153         sv/Tutorial.lyx
154
155 docdir = $(pkgdatadir)/doc
156 dist_doc_DATA = \
157         Customization.lyx \
158         DocStyle.lyx \
159         DummyTextDocument.txt \
160         DummyDocument1.lyx \
161         DummyDocument2.lyx \
162         EmbeddedObjects.lyx \
163         Extended.lyx \
164         FAQ.lyx \
165         Intro.lyx \
166         LaTeXConfig.lyx.in \
167         Reference.lyx \
168         Tutorial.lyx \
169         UserGuide.lyx
170
171 doc_DATA = $(docfiles) 
172
173 DEPENDFILE = $(srcdir)/Makefile.depend
174 # include $(DEPENDFILE) does not work because automake is too limited.
175 include $(srcdir)/Makefile.depend
176
177 TOCs : $(DEPENDFILE) $(tocfiles)
178         @echo Made TOCs succesfully.
179
180 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
181 # new doc files might have been added
182 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
183         python $(srcdir)/depend.py > $(DEPENDFILE)
184
185 # The TOCs are not built for the install and dist targets if they don't exist
186 # for some weird reason.
187 # Make complains although we have rules for them in $(DEPENDFILE), so we
188 # must not include the TOCs in $(docfiles) and have to use the install and
189 # dist hooks below.
190 dist-hook: $(tocfiles)
191         for i in $(tocfiles); \
192         do \
193                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
194                 else file="$$i"; fi; \
195                 cp -p "$$file" "$(distdir)"; \
196         done
197 install-data-hook: $(tocfiles)
198         for i in $(tocfiles); \
199         do \
200                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
201                 else file="$$i"; fi; \
202                 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
203         done
204
205 uninstall-local:
206         for i in $(tocfiles); \
207         do \
208                 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
209         done
210
211 .PHONY: TOCs