X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2FMakefile.am;h=2ddabe8ee4152e594b854e20bf20d1b6f00237bd;hp=50c49956a58a177720a571fb18b4159e2cf44ae5;hb=5a5e6000ab35190c0cf7e0be956c2334ecfec5c9;hpb=6906b22a460bfe9b7e30769be549e3bf713f9ac0 diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am index 50c49956..2ddabe8e 100644 --- a/doc/tutorial/Makefile.am +++ b/doc/tutorial/Makefile.am @@ -4,21 +4,22 @@ FIG = classhierarchy.fig repnaive.fig reppair.fig repreal.fig PNG = $(addsuffix .png, $(basename $(FIG))) EPS = $(addsuffix .eps, $(basename $(FIG))) +TXT = $(addsuffix .txt, $(basename $(FIG))) -SUFFIXES = .fig .png .eps +SUFFIXES = .fig .png .eps .txt -%.eps: %.fig +.fig.eps: @if [ "${FIG2DEV}" ]; then \ - echo "Running ${FIG2DEV} -L ps -m 0.8 $< $@..."; \ - ${FIG2DEV} -L ps -m 0.8 $< $@; \ + 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 -%.png: %.fig +.fig.png: @if [ "${FIG2DEV}" ]; then \ echo "Running ${FIG2DEV} -L png $< $@..."; \ - ${FIG2DEV} -L png $< $@; \ + cd $(srcdir) && ${FIG2DEV} -L png $< $@; \ else \ echo "warning: fig2dev was not found by configure"; \ fi @@ -36,12 +37,14 @@ ginactutorialdir = $(ginacdocdir)/tutorial ginactutorial_DATA = @TUTORIAL_TARGETS@ CLEANFILES = $(EPS) $(PNG) ginac.html -EXTRA_DIST = $(FIG) +EXTRA_DIST = $(FIG) $(TXT) install-data-local: @for p in $(PNG); do \ - echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p"; \ - $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p; \ + if [ -f $(srcdir)/$$p ]; then \ + echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p"; \ + $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginactutorialdir)/$$p; \ + fi; \ done uninstall-local: