From: ellson Date: Fri, 16 Mar 2007 16:12:56 +0000 (+0000) Subject: 1. run ldconfig during install in case --rpath not used (e.g. when installing in... X-Git-Tag: LAST_LIBGRAPH~32^2~5622 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3910979aa1f733e085835bef9b6c4c0fa3bb1f50;p=graphviz 1. run ldconfig during install in case --rpath not used (e.g. when installing in /usr/local) 2. run "dot_static -c" if "dot" not available --- diff --git a/cmd/dot/Makefile.am b/cmd/dot/Makefile.am index 60ef1af17..d58baf70b 100644 --- a/cmd/dot/Makefile.am +++ b/cmd/dot/Makefile.am @@ -37,7 +37,7 @@ install-data-hook: # run "dot -c", if possible, to create plugin config install-exec-hook: (cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot $$i; done;) - if test "x$(DESTDIR)" = "x"; then (cd $(bindir); ./dot -c;); fi + if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot; then /sbin/ldconfig; $(bindir)/dot -c; else $(bindir)/dot_static -c; fi; fi uninstall-hook: (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)