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