Merge branch 'rtoy-wrap-option-args'
[maxima.git] / doc / info / common-lang.mk
blob370757c6a8b05b2ec1d46316b56912b60f0c44ed
1 info_TEXINFOS = maxima.texi
3 all-local: maxima-index.lisp maxima-index-html.lisp index.html
5 maxima-index.lisp: maxima.info $(srcdir)/../build_index.pl
6 /usr/bin/env perl $(srcdir)/../build_index.pl maxima.info ':crlf' > maxima-index.lisp
8 # Really depends on all the individual html files, but let's assume
9 # that if index.html is done, we have all the remaining html
10 # files.
12 # Load build-html-index.lisp and run the builder to create
13 # maxima-index-html.lisp. In a clean directory, there won't be a
14 # maxima-index-html.lisp, so we don't want to try to verify the html
15 # index to prevent spurious warnings. Then after it's done, run
16 # maxima to verify the index.
17 maxima-index-html.lisp : index.html $(top_srcdir)/doc/info/build-html-index.lisp
18 MAXIMA_LANG_SUBDIR=$(lang) $(top_builddir)/maxima-local --no-init --no-verify-html-index --preload=$(top_srcdir)/doc/info/build-html-index.lisp --batch-string='build_and_dump_html_index("./*.html", "$(lang)");'
19 MAXIMA_LANG_SUBDIR=$(lang) $(top_builddir)/maxima-local --no-init --batch-string="quit();"
21 maxima_singlepage.html index.html: maxima.texi $(maxima_TEXINFOS) $(figurefiles) $(top_srcdir)/doc/info/manual.css $(top_srcdir)/doc/info/texi2html.init
22 ../build_html.sh -l $(lang)
24 maxima.pdf: maxima.texi $(maxima_TEXINFOS)
25 $(TEXI2PDF) $(AM_V_texinfo) -I $(srcdir)/.. -o maxima.pdf $(srcdir)/maxima.texi
26 rm -f maxima.fns maxima.vr maxima.tp maxima.pg maxima.ky maxima.cp \
27 maxima.toc maxima.fn maxima.aux maxima.log maxima.vrs
29 include $(top_srcdir)/common.mk
31 # The basename for the html files for the manual. Since we don't
32 # rename the html files, the html file names can basically have any
33 # name.
34 htmlname = *
35 htmlinstdir = $(dochtmldir)$(langsdir)
36 include $(top_srcdir)/common-html.mk
38 clean-local: clean-info clean-html
40 clean-info:
41 rm -f maxima.info
42 rm -f maxima.info*
43 rm -f maxima-index.lisp
44 rm -f maxima-index-html.lisp
46 clean-html:
47 rm -f *.html
49 EXTRA_DIST = maxima-index.lisp maxima-index-html.lisp $(genericdirDATA) index.html
52 install-info-am: $(INFO_DEPS) maxima-index.lisp maxima-index-html.lisp
53 test -z "$(infodir)$(langsdir)" || mkdir -p -- "$(DESTDIR)$(infodir)$(langsdir)"
54 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
55 list='$(INFO_DEPS)'; \
56 for file in $$list; do \
57 case $$file in \
58 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
59 esac; \
60 if test -f $$file; then d=.; else d=$(srcdir); fi; \
61 file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
62 for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
63 $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
64 if test -f $$ifile; then \
65 relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
66 echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)$(langsdir)/$$relfile'"; \
67 $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)$(langsdir)/$$relfile"; \
68 else : ; fi; \
69 done; \
70 done
71 $(INSTALL_DATA) maxima-index.lisp "$(DESTDIR)$(infodir)$(langsdir)/maxima-index.lisp"
72 $(INSTALL_DATA) maxima-index-html.lisp "$(DESTDIR)$(infodir)$(langsdir)/maxima-index-html.lisp"
74 uninstall-info-am:
75 @list='$(INFO_DEPS)'; \
76 for file in $$list; do \
77 relfile=`echo "$$file" | sed 's|^.*/||'`; \
78 relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
79 (if cd "$(DESTDIR)$(infodir)$(langsdir)"; then \
80 echo " cd '$(DESTDIR)$(infodir)$(langsdir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
81 rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
82 else :; fi); \
83 done
84 rm -f "$(DESTDIR)$(infodir)$(langsdir)/maxima-index.lisp"
85 rm -f "$(DESTDIR)$(infodir)$(langsdir)/maxima-index-html.lisp"