X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2FMakefile.am;h=d3c1afa06ba2cb15a5d607f3e7f497b144ddb14a;hp=fc1e74b9be436d4dd1c9f318d73aaac8f301b1ea;hb=8cf56f946fcd6ed8571120ab7d438d3a9e891cb6;hpb=ed62b717aa0383e08b4a2642cd923498898e1a18 diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am index fc1e74b9..d3c1afa0 100644 --- a/doc/tutorial/Makefile.am +++ b/doc/tutorial/Makefile.am @@ -8,7 +8,7 @@ TXT = $(addsuffix .txt, $(basename $(FIG))) SUFFIXES = .fig .png .eps .txt -%.eps: %.fig +.fig.eps: @if [ "${FIG2DEV}" ]; then \ echo "Running ${FIG2DEV} -L eps -m 0.9 $< $@..."; \ ${FIG2DEV} -L eps -m 0.9 $< $@; \ @@ -16,7 +16,7 @@ SUFFIXES = .fig .png .eps .txt 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,21 +29,20 @@ 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 +ginactutorialdir = `test -z "@TUTORIAL_TARGETS@" || echo @datadir@/doc/GiNaC/tutorial` ginactutorial_DATA = @TUTORIAL_TARGETS@ CLEANFILES = $(EPS) $(PNG) ginac.html EXTRA_DIST = $(FIG) $(TXT) install-data-local: + $(mkinstalldirs) $(DESTDIR)$(ginactutorialdir) @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; \ + if [ -f $$p ]; then \ + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(ginactutorialdir)/$$p"; \ + $(INSTALL_DATA) $$p $(DESTDIR)$(ginactutorialdir)/$$p; \ fi; \ done