Add host check to get Sun hack working
[shibboleth/cpp-xmltooling.git] / Makefile.am
index 76dd4cf..ca5e29a 100644 (file)
@@ -32,7 +32,15 @@ dist-hook:
 
 SUBDIRS = schemas xmltooling xmltoolingtest
 
-all-local: xmltooling.spec pkginfo doxygen-doc
+all-local: xmltooling.spec pkginfo
+
+if DX_COND_doc
+all-local: doxygen-doc
+
+install-data-hook:
+       rm -rf $(prefix)/doc/@PACKAGE@/api
+       cp -r doc/api $(prefix)/doc/@PACKAGE@
+endif
 
 xmltooling.spec: xmltooling.spec.in Makefile
        rm -f $@.tmp