X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2FMakefile.am;h=d36fb8a7af30d4e5c4ea5b5d6a3f5f214eb4ee7c;hp=2ddabe8ee4152e594b854e20bf20d1b6f00237bd;hb=1776cd33da528c878ef1fb5530f8ac788e445ee5;hpb=dbb36db8d02b2c25af6bbfff8135112637936e1f diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am index 2ddabe8e..d36fb8a7 100644 --- a/doc/tutorial/Makefile.am +++ b/doc/tutorial/Makefile.am @@ -1,54 +1,41 @@ ## Process this file with automake to produce Makefile.in -# Graphics file conversion FIG = classhierarchy.fig repnaive.fig reppair.fig repreal.fig +info_TEXINFOS = +AM_MAKEINFOHTMLFLAGS = --no-split + +if CONFIG_TEX +if CONFIG_FIG2DEV + +# Graphics file conversion PNG = $(addsuffix .png, $(basename $(FIG))) EPS = $(addsuffix .eps, $(basename $(FIG))) -TXT = $(addsuffix .txt, $(basename $(FIG))) +PDF = $(addsuffix .pdf, $(basename $(FIG))) -SUFFIXES = .fig .png .eps .txt +SUFFIXES = .fig .png .eps .fig.eps: - @if [ "${FIG2DEV}" ]; then \ echo "Running ${FIG2DEV} -L eps -m 0.9 $< $@..."; \ - cd $(srcdir) && ${FIG2DEV} -L eps -m 0.9 $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi + ${FIG2DEV} -L eps -m 0.9 $< $@; + +.fig.pdf: + echo "Running ${FIG2DEV} -L pdf -m 0.9 $< $@..."; \ + ${FIG2DEV} -L pdf -m 0.9 $< $@ .fig.png: - @if [ "${FIG2DEV}" ]; then \ - echo "Running ${FIG2DEV} -L png $< $@..."; \ - cd $(srcdir) && ${FIG2DEV} -L png $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi + @echo "Running ${FIG2DEV} -L png $< $@..."; \ + ${FIG2DEV} -L png $< $@ -info_TEXINFOS = ginac.texi -ginac.dvi: $(EPS) +info_TEXINFOS += ginac.texi -ginac.html: ginac.texi version.texi $(PNG) - cd $(srcdir) \ - && $(MAKEINFO) --html `echo $< | sed 's,.*/,,'` - -ginacdocdir = $(datadir)/doc/GiNaC -ginactutorialdir = $(ginacdocdir)/tutorial -ginactutorial_DATA = @TUTORIAL_TARGETS@ - -CLEANFILES = $(EPS) $(PNG) ginac.html -EXTRA_DIST = $(FIG) $(TXT) - -install-data-local: - @for p in $(PNG); do \ - if [ -f $(srcdir)/$$p ]; then \ - echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p"; \ - $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p; \ - fi; \ - done - -uninstall-local: - @for p in $(PNG); do \ - echo " rm -f $(DESTDIR)$(ginactutorialdir)/$$p"; \ - rm -f $(DESTDIR)$(ginactutorialdir)/$$p; \ - done +ginac.pdf: $(PDF) +ginac.dvi: $(EPS) +ginac.html: $(PNG) +CLEANFILES = $(EPS) $(PDF) $(PNG) +## CONFIG_FIG2DEV +endif +## CONFIG_TEX +endif + +EXTRA_DIST = $(FIG)