Test for api directory before installing it.
authorscantor <scantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Sun, 6 Mar 2011 02:48:54 +0000 (02:48 +0000)
committerscantor <scantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Sun, 6 Mar 2011 02:48:54 +0000 (02:48 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-opensaml/branches/REL_2@630 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

doc/Makefile.am

index 2c53926..4320aca 100644 (file)
@@ -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 = \
        README.txt \