Permalink
Browse files

-- Make variable htmlinstdir specifies installation directory for HTM…

…L files

-- New HTML build scheme applied to xmaxima.html
  • Loading branch information...
1 parent 06d1e7f commit 8b49e32d49adf149338400ba59eb09669f843148 vvzhy committed Feb 5, 2007
Showing with 23 additions and 21 deletions.
  1. +13 −13 common-html.mk
  2. +1 −1 doc/info/Makefile.am
  3. +1 −0 doc/info/es/Makefile.am
  4. +1 −0 doc/info/pt/Makefile.am
  5. +1 −0 doc/info/pt_BR/Makefile.am
  6. +6 −7 interfaces/xmaxima/doc/Makefile.am
View
@@ -1,35 +1,35 @@
# Installation/uninstallation and distribution for .html files.
-# htmlname variable should be set to html base name,
-# for example maxima or xmaxima
+# htmlname -- html base name (e.g. maxima or xmaxima)
+# htmlinstdir -- html installation directory
install-data-local: install-maxima-html
install-maxima-html: $(htmlname).html
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(genericdir)
+ $(mkinstalldirs) $(DESTDIR)$(htmlinstdir)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
list="$(srcdir)/$(htmlname).html $(srcdir)/$(htmlname)_*.html" ; \
for p in $$list; do \
f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`; \
if test -f $(srcdir)/$$f; then \
- if test ! -d `dirname $(DESTDIR)$(genericdir)/$$f`; then \
- $(mkinstalldirs) `dirname $(DESTDIR)$(genericdir)/$$f`; \
+ if test ! -d `dirname $(DESTDIR)$(htmlinstdir)/$$f`; then \
+ $(mkinstalldirs) `dirname $(DESTDIR)$(htmlinstdir)/$$f`; \
fi; \
- echo " $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(genericdir)/$$f"; \
- $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(genericdir)/$$f; \
+ echo " $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmlinstdir)/$$f"; \
+ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmlinstdir)/$$f; \
else if test -f $$f; then \
- if test ! -d `dirname $(DESTDIR)$(genericdir)/$$f`; then \
- $(mkinstalldirs) `dirname $(DESTDIR)$(genericdir)/$$f`; \
+ if test ! -d `dirname $(DESTDIR)$(htmlinstdir)/$$f`; then \
+ $(mkinstalldirs) `dirname $(DESTDIR)$(htmlinstdir)/$$f`; \
fi; \
- echo " $(INSTALL_DATA) $$f $(DESTDIR)$(genericdir)/$$f"; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(genericdir)/$$f; \
+ echo " $(INSTALL_DATA) $$f $(DESTDIR)$(htmlinstdir)/$$f"; \
+ $(INSTALL_DATA) $$f $(DESTDIR)$(htmlinstdir)/$$f; \
fi; fi; \
done
uninstall-local: uninstall-maxima-html
uninstall-maxima-html:
@$(NORMAL_UNINSTALL)
- rm -f $(DESTDIR)$(genericdir)/$(htmlname).html
- rm -f $(DESTDIR)$(genericdir)/$(htmlname)_*.html
+ rm -f $(DESTDIR)$(htmlinstdir)/$(htmlname).html
+ rm -f $(DESTDIR)$(htmlinstdir)/$(htmlname)_*.html
dist-hook: dist-maxima-html
dist-maxima-html: $(htmlname).html
View
@@ -149,8 +149,8 @@ genericdir = $(dochtmldir)
genericdirDATA = $(figurefiles) \
contents.hhc index.hhk header.hhp maxima.hhp
-# This handles all maxima.html and maxima_*.html files
htmlname = maxima
+htmlinstdir = $(dochtmldir)
include $(top_srcdir)/common-html.mk
all-local: warn_texinfo
View
@@ -43,6 +43,7 @@ genericdirDATA = \
contents.hhc index.hhk header.hhp maxima.hhp
htmlname = maxima
+htmlinstdir = $(dochtmldir)/es
include $(top_srcdir)/common-html.mk
clean-local: clean-info clean-html
View
@@ -98,6 +98,7 @@ genericdirDATA = \
contents.hhc index.hhk header.hhp maxima.hhp
htmlname = maxima
+htmlinstdir = $(dochtmldir)/pt
include $(top_srcdir)/common-html.mk
clean-local: clean-info clean-html
@@ -97,6 +97,7 @@ genericdirDATA = \
contents.hhc index.hhk header.hhp maxima.hhp
htmlname = maxima
+htmlinstdir = $(dochtmldir)/pt_BR
include $(top_srcdir)/common-html.mk
clean-local: clean-info clean-html
@@ -6,16 +6,15 @@ SUBDIRS = figures
info_TEXINFOS = xmaxima.texi
-XMAXIMAHTML = xmaxima.html xmaxima_1.html xmaxima_2.html xmaxima_3.html \
- xmaxima_4.html xmaxima_5.html xmaxima_6.html xmaxima_7.html \
- xmaxima_8.html xmaxima_abt.html xmaxima_toc.html
+all-local: xmaxima.html
-htmldir = $(xmaximadir)/html
-html_DATA = $(XMAXIMAHTML)
-
-$(XMAXIMAHTML): xmaxima.texi $(top_srcdir)/doc/info/texi2html
+xmaxima.html: xmaxima.texi $(top_srcdir)/doc/info/texi2html
perl $(top_srcdir)/doc/info/texi2html -split_chapter --lang=en --output=. --css-include=$(top_srcdir)/doc/info/manual.css --init-file $(top_srcdir)/doc/info/texi2html.init xmaxima.texi
+htmlname = xmaxima
+htmlinstdir = $(xmaximadir)/html
+include $(top_srcdir)/common-html.mk
+
clean-local:
rm -f xmaxima.info*
rm -f xmaxima*.html

0 comments on commit 8b49e32

Please sign in to comment.