# Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) # # Distributed under 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_SUBDIRS = config make external src bindings adaptors examples # test docs SAGA_ROOT = $(shell pwd) include $(SAGA_ROOT)/make/saga.mk .PHONY: tests tests: $(MAKE) -C test tests docs: @$(RM) -rf doc/doxygen/ doxygen.*.log @$(MKDIR) doc/doxygen/ @$(CAT) doc/doxygen.conf | sed -e "s/###DIR###/saga/g" > doc/doxygen.saga.conf @$(CAT) doc/doxygen.conf | sed -e "s/###DIR###/python/g" > doc/doxygen.python.conf @$(CAT) doc/doxygen.conf | sed -e "s/###DIR###/adaptors/g" > doc/doxygen.adaptors.conf @doxygen doc/doxygen.saga.conf @doxygen doc/doxygen.python.conf @doxygen doc/doxygen.adaptors.conf @$(RM) doc/doxygen.*.conf stats: @cd saga && kloc -gs -d @sloccount saga 2>>/dev/null distclean:: @$(RM) -rf doc/doxygen/ doc/doxygen.*.conf doxygen.*.log @$(RM) -rf Makefile.ok clean:: @$(RM) -rf saga-a-0.5 saga-a-0.5.tgz dist: @$(TEST) -e saga-a-0.5 || $(LN) -s . saga-a-0.5 @$(TEST) ! -e saga-a-0.5.tgz || $(RM) saga-a-0.5.tgz @$(MAKE) distclean @$(TAR) chvf - --exclude CVS \ --exclude .\#\* \ saga-a-0.5/{configure.in,configure,Makefile} \ saga-a-0.5/{README,README.cpp,LICENSE_1_0.txt} \ saga-a-0.5/external/{README,Makefile,boost,soci,u2nt} \ saga-a-0.5/{doc,config,make,saga,test,tests} \ | gzip -c > saga-a-0.5.tgz @$(RM) saga-a-0.5 packages: @./configure --prefix=`pwd`/usr @$(MAKE) install @tar zcvf @tar zcvf libsaga++-0.5.0.tgz usr/ @sudo alien -to-deb libsaga++-0.5.0.tgz @sudo alien -to-rpm libsaga++-0.5.0.tgz @sudo alien -to-slp libsaga++-0.5.0.tgz @sudo alien -to-pkg libsaga++-0.5.0.tgz @$(RM) -r ./usr/