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=461de9a9505ee2a8e14c3e84ee1dcc77d9c26c81;hb=56a180a49e085b325c0e6e49a2e2db07c570ef7b;hpb=58fb0e5059bd06891ce8ffa65def6e98bace751c diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am index 461de9a9..2d23965f 100644 --- a/doc/tutorial/Makefile.am +++ b/doc/tutorial/Makefile.am @@ -1,52 +1,42 @@ ## Process this file with automake to produce Makefile.in -# Graphics file conversion FIG = classhierarchy.fig repnaive.fig reppair.fig repreal.fig +TXT = $(addsuffix .txt, $(basename $(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 .fig.eps: - @if [ "${FIG2DEV}" ]; then \ echo "Running ${FIG2DEV} -L eps -m 0.9 $< $@..."; \ - ${FIG2DEV} -L eps -m 0.9 $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi + ${FIG2DEV} -L eps -m 0.9 $< $@; -.fig.png: - @if [ "${FIG2DEV}" ]; then \ - echo "Running ${FIG2DEV} -L png $< $@..."; \ - ${FIG2DEV} -L png $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi +.fig.pdf: + echo "Running ${FIG2DEV} -L pdf -m 0.9 $< $@..."; \ + ${FIG2DEV} -L pdf -m 0.9 $< $@ -info_TEXINFOS = ginac.texi +.fig.png: + @echo "Running ${FIG2DEV} -L png $< $@..."; \ + ${FIG2DEV} -L png $< $@ -ginac.dvi: $(EPS) -ginac.html: ginac.texi version.texi $(PNG) - $(MAKEINFO) --html $< -I ${srcdir} +info_TEXINFOS += ginac.texi -ginactutorialdir = `test -z "@TUTORIAL_TARGETS@" || echo @datadir@/doc/GiNaC/tutorial` -ginactutorial_DATA = @TUTORIAL_TARGETS@ +ginac.pdf: $(PDF) +ginac.dvi: $(EPS) +ginac.html: $(PNG) +CLEANFILES = $(EPS) $(PDF) $(PNG) +## CONFIG_FIG2DEV +endif +## CONFIG_TEX +endif -CLEANFILES = $(EPS) $(PNG) ginac.html EXTRA_DIST = $(FIG) $(TXT) - -install-data-local: - @for p in $(PNG); do \ - if [ -f $$p ]; then \ - echo " $(INSTALL_DATA) $$p $(DESTDIR)$(ginactutorialdir)/$$p"; \ - $(INSTALL_DATA) $$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