]> granicus.if.org Git - graphviz/commitdiff
1. run ldconfig during install in case --rpath not used (e.g. when installing in...
authorellson <devnull@localhost>
Fri, 16 Mar 2007 16:12:56 +0000 (16:12 +0000)
committerellson <devnull@localhost>
Fri, 16 Mar 2007 16:12:56 +0000 (16:12 +0000)
2. run "dot_static -c" if "dot" not available

cmd/dot/Makefile.am

index 60ef1af17b8d316fadddce0c97d82971241c29dc..d58baf70b7434f5d956e3a1d60cf8577a3962479 100644 (file)
@@ -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;)