# some regexpese to tutorial.sgml prior to parsing it, in order to allow for
# different graphics output. This seems to be an ugly limitation of docbook...
-FIG = classhierarchy.fig rep_naive.fig rep_pair.fig
+FIG = classhierarchy.fig rep_naive.fig rep_pair.fig rep_real.fig
PNG = $(addsuffix .png, $(basename $(FIG)))
EPS = $(addsuffix .eps, $(basename $(FIG)))
index.html: tutorial.sgml.in $(PNG)
@if [ "${JADE}" ]; then \
- sed -e 's/graext/png/g' -e 's/GRAEXT/GIF/g' tutorial.sgml.in > tutorial.sgml; \
+ sed -e "s/MAJOR_VERSION/${GINACLIB_MAJOR_VERSION}/" \
+ -e "s/MINOR_VERSION/${GINACLIB_MINOR_VERSION}/" \
+ -e 's/graext/png/g' \
+ -e 's/GRAEXT/GIF/g' tutorial.sgml.in > tutorial.sgml; \
echo "Running ${JADE} ${JADEARGS_HTML} tutorial.sgml..."; \
${JADE} ${JADEARGS_HTML} tutorial.sgml; \
if [ -f book1.html ]; then mv book1.html index.html; fi; \
tutorial.tex: tutorial.sgml.in $(EPS)
@if [ "${JADE}" -a "${LATEX}" ]; then \
- sed -e 's/graext/eps/g' -e 's/GRAEXT/EPS/g' tutorial.sgml.in > tutorial.sgml; \
+ sed -e "s/MAJOR_VERSION/${GINACLIB_MAJOR_VERSION}/" \
+ -e "s/MINOR_VERSION/${GINACLIB_MINOR_VERSION}/" \
+ -e 's/graext/eps/g' \
+ -e 's/GRAEXT/EPS/g' tutorial.sgml.in > tutorial.sgml; \
echo "Running ${JADE} ${JADEARGS_TEX} tutorial.sgml..."; \
${JADE} ${JADEARGS_TEX} tutorial.sgml ; \
else \
echo "warning: target tutorial.ps disabled by configuration"; \
fi
+ginacdocdir = $(datadir)/doc/GiNaC
+ginactutorialdir = $(ginacdocdir)/tutorial
+ginactutorial_DATA = @TUTORIAL_TARGETS@
+EXTRA_DATA = index.html tutorial.ps
+
+CLEANFILES = *.html *.png *.ps *.tex *.log *.aux *.dvi *.eps tutorial.sgml HTML.manifest
+EXTRA_DIST = tutorial.sgml.in $(FIG)
+
install-data-local:
@for p in *.html; do \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p"; \
echo " rm -f $(DESTDIR)$(ginactutorialdir)/$$p"; \
rm -f $(DESTDIR)$(ginactutorialdir)/$$p; \
done
-
-ginacdocdir = $(datadir)/doc/GiNaC
-ginactutorialdir = $(ginacdocdir)/tutorial
-ginactutorial_DATA = $(TUTORIAL_TARGETS)
-EXTRA_DATA = index.html tutorial.ps
-
-CLEANFILES = *.html *.png *.ps *.tex *.log *.aux *.dvi *.eps tutorial.sgml HTML.manifest
-EXTRA_DIST = tutorial.sgml.in $(FIG)