X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2FMakefile.am;h=af8ac282504dd2ca4f107e52b6eda7d45495161f;hp=23edcb64479ebdab95d5ac46cbcf1aa056f0abfb;hb=c5ca06e3a25226684028dec4bd8cba0833998be6;hpb=0e17746a6dd27ec7879d37a02cffe89609cbe298 diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am index 23edcb64..af8ac282 100644 --- a/doc/tutorial/Makefile.am +++ b/doc/tutorial/Makefile.am @@ -8,15 +8,15 @@ TXT = $(addsuffix .txt, $(basename $(FIG))) 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 $< $@..."; \ + ${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 $< $@; \ @@ -29,8 +29,7 @@ info_TEXINFOS = ginac.texi ginac.dvi: $(EPS) ginac.html: ginac.texi version.texi $(PNG) - cd $(srcdir) \ - && $(MAKEINFO) --html `echo $< | sed 's,.*/,,'` + $(MAKEINFO) --html $< -I ${srcdir} ginacdocdir = $(datadir)/doc/GiNaC ginactutorialdir = $(ginacdocdir)/tutorial @@ -41,8 +40,10 @@ 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 $$p ]; then \ + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(ginactutorialdir)/$$p"; \ + $(INSTALL_DATA) $$p $(DESTDIR)$(ginactutorialdir)/$$p; \ + fi; \ done uninstall-local: