]> git.lyx.org Git - lyx.git/blob - lib/doc/Makefile.am
new Galician docs
[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 docfiles = \
8         cs_Tutorial.lyx \
9         Customization.lyx \
10         da_Intro.lyx \
11         de_Customization.lyx \
12         de_Extended.lyx \
13         de_FAQ.lyx \
14         de_Intro.lyx \
15         de_Tutorial.lyx \
16         de_UserGuide.lyx \
17         DocStyle.lyx \
18         es_Intro.lyx \
19         es_Tutorial.lyx \
20         eu_Customization.lyx \
21         eu_Extended.lyx \
22         eu_FAQ.lyx \
23         eu_Intro.lyx \
24         eu_Tutorial.lyx \
25         eu_UserGuide.lyx \
26         Extended.lyx \
27         FAQ.lyx \
28         fr_Customization.lyx \
29         fr_Extended.lyx \
30         fr_FAQ.lyx \
31         fr_Intro.lyx \
32         fr_Tutorial.lyx \
33         fr_UserGuide.lyx \
34         gl_Intro.lyx \
35         he_Intro.lyx \
36         he_Tutorial.lyx \
37         hu_Intro.lyx \
38         hu_Tutorial.lyx \
39         Intro.lyx \
40         it_Customization.lyx \
41         it_Intro.lyx \
42         it_Tutorial.lyx \
43         it_UserGuide.lyx \
44         LaTeXConfig.lyx.in \
45         nl_Intro.lyx \
46         nl_Tutorial.lyx \
47         nb_Intro.lyx \
48         pl_Extended.lyx \
49         pl_Intro.lyx \
50         pl_Tutorial.lyx \
51         pt_Intro.lyx \
52         pt_Tutorial.lyx \
53         Reference.lyx \
54         ro_Intro.lyx \
55         ru_FAQ.lyx \
56         ru_Intro.lyx \
57         ru_Tutorial.lyx \
58         sk_Tutorial.lyx \
59         sk_UserGuide.lyx \
60         sl_Intro.lyx \
61         sl_Tutorial.lyx \
62         sv_Intro.lyx \
63         sv_Tutorial.lyx \
64         Tutorial.lyx \
65         UserGuide.lyx \
66         escher-lsd.eps \
67         mobius.eps \
68         platypus.eps
69
70 docdir = $(pkgdatadir)/doc
71 doc_DATA = $(docfiles) 
72
73 DEPENDFILE = $(srcdir)/Makefile.depend
74 # include $(DEPENDFILE) does not work because automake is too limited.
75 include $(srcdir)/Makefile.depend
76
77 TOCs : $(DEPENDFILE) $(tocfiles)
78         @echo Made TOCs succesfully.
79
80 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
81 # new doc files might have been added
82 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
83         python $(srcdir)/depend.py > $(DEPENDFILE)
84
85 # The TOCs are not built for the install and dist targets if they don't exist
86 # for some weird reason.
87 # Make complains although we have rules for them in $(DEPENDFILE), so we
88 # must not include the TOCs in $(docfiles) and have to use the install and
89 # dist hooks below.
90 dist-hook: $(tocfiles)
91         for i in $(tocfiles); \
92         do \
93                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
94                 else file="$$i"; fi; \
95                 cp -p "$$file" "$(distdir)"; \
96         done
97 install-data-hook: $(tocfiles)
98         for i in $(tocfiles); \
99         do \
100                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
101                 else file="$$i"; fi; \
102                 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
103         done
104
105 uninstall-local:
106         for i in $(tocfiles); \
107         do \
108                 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
109         done
110
111 .PHONY: TOCs