Test for api directory before installing it.
authorScott Cantor <cantor.2@osu.edu>
Sun, 6 Mar 2011 02:46:20 +0000 (02:46 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sun, 6 Mar 2011 02:46:20 +0000 (02:46 +0000)
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 \