2 MAXIMA_CHM
= maxima.chm
3 INSTALL_CHM
= install-chm
4 UNINSTALL_CHM
= uninstall-chm
8 all-local
: maxima-index.lisp maxima.html contents.hhc
$(MAXIMA_CHM
)
10 install-data-local
: $(INSTALL_CHM
)
12 uninstall-local
: $(UNINSTALL_CHM
)
14 maxima-index.lisp
: maxima.
info ..
/build_index.pl
15 perl ..
/build_index.pl maxima.
info ':crlf' > maxima-index.lisp
17 maxima.html
: maxima.texi
$(maxima_TEXINFOS
)
18 perl ..
/texi2html
-split_chapter
--lang
=$(lang
) --output
=.
--css-include
=..
/manual.css
--init-file texi2html.init maxima.texi
20 maxima.pdf
: maxima.texi
$(maxima_TEXINFOS
)
21 $(TEXI2PDF
) $(AM_V_texinfo
) -o maxima.pdf maxima.texi
22 rm maxima.fns maxima.vr maxima.tp maxima.pg maxima.ky maxima.cp \
23 maxima.toc maxima.fn maxima.aux maxima.log
25 contents.hhc
: maxima.html
28 include $(top_srcdir
)/common.mk
29 genericdir
= $(dochtmldir
)/$(langsdir
)
31 contents.hhc index.hhk header.hhp maxima.hhp
34 htmlinstdir
= $(dochtmldir
)/$(langsdir
)
35 include $(top_srcdir
)/common-html.mk
37 clean-local
: clean-info clean-html
$(CLEAN_CHM
)
41 rm -f maxima-index.lisp
44 rm -f maxima.html maxima_
*.html
48 EXTRA_DIST
= maxima-index.lisp
$(genericdirDATA
)
50 # This builds the Windows help file maxima.chm
51 maxima.chm
: maxima.html maxima.hhp contents.hhc index.hhk
53 $(MKDIR_P
) chm
/figures
54 for hfile in
*.html
; do \
55 sed
-e
's|../figures|figures|g' < $$hfile > chm
/$$hfile; \
57 cp maxima.hhp contents.hhc index.hhk chm
58 cp ..
/figures
/*.gif chm
/figures
59 -(cd chm
; "$(HHC)" maxima.hhp
)
62 install-chm
: maxima.chm
63 test -z
"$(DESTDIR)$(docchmdir)/$(langsdir)" || mkdir
-p
-- "$(DESTDIR)$(docchmdir)/$(langsdir)"
64 $(INSTALL_DATA
) maxima.chm
"$(DESTDIR)$(docchmdir)/$(langsdir)/maxima.chm"
67 rm -f
"$(DESTDIR)$(docchmdir)"
74 install-info-am
: $(INFO_DEPS
) maxima-index.lisp
75 test -z
"$(infodir)$(langsdir)" || mkdir
-p
-- "$(DESTDIR)$(infodir)$(langsdir)"
76 @srcdirstrip
=`echo "$(srcdir)" | sed 's|.|.|g'`; \
77 list
='$(INFO_DEPS)'; \
78 for file in
$$list; do \
80 $(srcdir)/*) file
=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
82 if
test -f
$$file; then d
=.
; else d
=$(srcdir); fi
; \
83 file_i
=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
84 for ifile in
$$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
85 $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
86 if
test -f
$$ifile; then \
87 relfile
=`echo "$$ifile" | sed 's|^.*/||'`; \
88 echo
" $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)$(langsdir)/$$relfile'"; \
89 $(INSTALL_DATA
) "$$ifile" "$(DESTDIR)$(infodir)$(langsdir)/$$relfile"; \
93 $(INSTALL_DATA
) maxima-index.lisp
"$(DESTDIR)$(infodir)$(langsdir)/maxima-index.lisp"
96 @list
='$(INFO_DEPS)'; \
97 for file in
$$list; do \
98 relfile
=`echo "$$file" | sed 's|^.*/||'`; \
99 relfile_i
=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
100 (if cd
"$(DESTDIR)$(infodir)$(langsdir)"; then \
101 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]"; \
102 rm -f
$$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
105 rm -f
"$(DESTDIR)$(infodir)$(langsdir)/maxima-index.lisp"