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