Examples cleanup
[maxima.git] / doc / info / common-lang.mk
blobf5b4ebff91db35f428c98b4d04cc7df302d38f56
1 if CHM
2 MAXIMA_CHM = maxima.chm
3 INSTALL_CHM = install-chm
4 UNINSTALL_CHM = uninstall-chm
5 CLEAN_CHM = clean-chm
6 endif
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
26 perl ../create_index
28 include $(top_srcdir)/common.mk
29 genericdir = $(dochtmldir)/$(langsdir)
30 genericdirDATA = \
31 contents.hhc index.hhk header.hhp maxima.hhp
33 htmlname = maxima
34 htmlinstdir = $(dochtmldir)/$(langsdir)
35 include $(top_srcdir)/common-html.mk
37 clean-local: clean-info clean-html $(CLEAN_CHM)
39 clean-info:
40 rm -f maxima.info*
41 rm -f maxima-index.lisp
43 clean-html:
44 rm -f maxima.html maxima_*.html
45 rm -f contents.hhc
46 rm -f index.hhk
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
52 $(MKDIR_P) chm
53 $(MKDIR_P) chm/figures
54 for hfile in *.html ; do \
55 sed -e 's|../figures|figures|g' < $$hfile > chm/$$hfile; \
56 done
57 cp maxima.hhp contents.hhc index.hhk chm
58 cp ../figures/*.gif chm/figures
59 -(cd chm; "$(HHC)" maxima.hhp)
60 mv chm/maxima.chm .
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"
66 uninstall-chm:
67 rm -f "$(DESTDIR)$(docchmdir)"
69 clean-chm:
70 rm -f maxima.chm
71 rm -rf chm
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 \
79 case $$file in \
80 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
81 esac; \
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"; \
90 else : ; fi; \
91 done; \
92 done
93 $(INSTALL_DATA) maxima-index.lisp "$(DESTDIR)$(infodir)$(langsdir)/maxima-index.lisp"
95 uninstall-info-am:
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]; \
103 else :; fi); \
104 done
105 rm -f "$(DESTDIR)$(infodir)$(langsdir)/maxima-index.lisp"