# Copyright (c) 2005-2006 Andre Merzky (andre@merzky.net) # Copyright (c) 2005-2010 Ole Weidner (oweidner@cct.lsu.edu) # # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) SAGA_ROOT = ../../ -include $(SAGA_ROOT)/bindings/saga/python/config/make.cfg include $(SAGA_ROOT)/make/saga.mk apidoc:: ifeq "x$(DOXYGEN)" "x" @$(ECHO) " cannot generate C++ API docs - doxygen is not installed" else @$(ECHO) " generating C++ API docs" @if ! test -d cpp/ ; \ then $(MKDIR) cpp ; fi @$(CP) saga.png cpp @$(DOXYGEN) Doxyfile endif ifeq "$(SAGA_HAVE_PYTHON)-$(SAGA_HAVE_BOOST_PYTHON)" "yes-yes" ifeq "x$(EPYDOC)" "x" @$(ECHO) " cannot generate Python API docs - epydoc is not installed" else @$(ECHO) " generating Python API docs (saga modules must be in PYTHONPATH)" @$(ECHO) $(SAGA_LOCATION) @$(EPYDOC) --html --config=epydoc.cfg endif endif install:: @if test -d cpp/ ; \ then $(ECHO) " installing C++ API documentation"; \ $(INSTALL) -d cpp share/saga/doc/apidoc-cpp/; \ else $(ECHO) " cannot install C++ API documentation - call 'make apidoc' to generate it"; fi ifeq "$(SAGA_HAVE_PYTHON)-$(SAGA_HAVE_BOOST_PYTHON)" "yes-yes" @if test -d python/ ; \ then $(ECHO) " installing Python API documentation"; \ $(INSTALL) -d python share/saga/doc/apidoc-python/; \ else $(ECHO) " cannot install Python API documentation - call 'make apidoc' to generate it"; fi endif # FIXME: we should actually delete the svn traces # @$(FIND) $(SAGA_LOCATION)/share/saga/doc/ -name .svn -exec rm -rf {} \; distclean:: @$(RM) -rf ./cpp/ @$(RM) -rf ./python/