From: Scott Cantor Date: Sun, 6 Mar 2011 02:48:20 +0000 (+0000) Subject: Test for api directory before installing it. X-Git-Tag: 2.5.0~312 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=64d34e549a1b84a1f7c85332b8c6fc6e67b0b78a Test for api directory before installing it. --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 03f93ee..3a0692b 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -3,8 +3,10 @@ AUTOMAKE_OPTIONS = foreign pkgdocdir = $(datadir)/doc/@PACKAGE@-@PACKAGE_VERSION@ install-data-hook: - cp -r api $(DESTDIR)$(pkgdocdir) - rm -rf `find $(DESTDIR)$(pkgdocdir)/api -name .svn` + if test -d api ; then \ + cp -r api $(DESTDIR)$(pkgdocdir); \ + rm -rf `find $(DESTDIR)$(pkgdocdir)/api -name .svn`; \ + fi; docfiles = \ CREDITS.txt \