]> git.lyx.org Git - lyx.git/blob - lib/doc/Makefile.am
revert mistake.
[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         gl_Tutorial.lyx \
36         he_Intro.lyx \
37         he_Tutorial.lyx \
38         hu_Intro.lyx \
39         hu_Tutorial.lyx \
40         Intro.lyx \
41         it_Customization.lyx \
42         it_Intro.lyx \
43         it_Tutorial.lyx \
44         it_UserGuide.lyx \
45         LaTeXConfig.lyx.in \
46         nl_Intro.lyx \
47         nl_Tutorial.lyx \
48         nb_Intro.lyx \
49         pl_Extended.lyx \
50         pl_Intro.lyx \
51         pl_Tutorial.lyx \
52         pt_Intro.lyx \
53         pt_Tutorial.lyx \
54         Reference.lyx \
55         ro_Intro.lyx \
56         ru_FAQ.lyx \
57         ru_Intro.lyx \
58         ru_Tutorial.lyx \
59         sk_Tutorial.lyx \
60         sk_UserGuide.lyx \
61         sl_Intro.lyx \
62         sl_Tutorial.lyx \
63         sv_Intro.lyx \
64         sv_Tutorial.lyx \
65         Tutorial.lyx \
66         UserGuide.lyx \
67         escher-lsd.eps \
68         mobius.eps \
69         platypus.eps
70
71 docdir = $(pkgdatadir)/doc
72 doc_DATA = $(docfiles) 
73
74 DEPENDFILE = $(srcdir)/Makefile.depend
75 # include $(DEPENDFILE) does not work because automake is too limited.
76 include $(srcdir)/Makefile.depend
77
78 TOCs : $(DEPENDFILE) $(tocfiles)
79         @echo Made TOCs succesfully.
80
81 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
82 # new doc files might have been added
83 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
84         python $(srcdir)/depend.py > $(DEPENDFILE)
85
86 # The TOCs are not built for the install and dist targets if they don't exist
87 # for some weird reason.
88 # Make complains although we have rules for them in $(DEPENDFILE), so we
89 # must not include the TOCs in $(docfiles) and have to use the install and
90 # dist hooks below.
91 dist-hook: $(tocfiles)
92         for i in $(tocfiles); \
93         do \
94                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
95                 else file="$$i"; fi; \
96                 cp -p "$$file" "$(distdir)"; \
97         done
98 install-data-hook: $(tocfiles)
99         for i in $(tocfiles); \
100         do \
101                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
102                 else file="$$i"; fi; \
103                 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
104         done
105
106 uninstall-local:
107         for i in $(tocfiles); \
108         do \
109                 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
110         done
111
112 .PHONY: TOCs