Test for api directory before installing it.
authorscantor <scantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Sun, 6 Mar 2011 02:46:20 +0000 (02:46 +0000)
committerscantor <scantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Sun, 6 Mar 2011 02:46:20 +0000 (02:46 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-xmltooling/branches/REL_1@844 de75baf8-a10c-0410-a50a-987c0e22f00f

doc/Makefile.am

index 7ad576f..60ed706 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 \