# Copyright (c) 2005-2008 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_ROOT = $(shell pwd) SAGA_VERSION = $(shell grep 'Version:' $(SAGA_ROOT)/VERSION | cut -f 2 -d ' ') include $(SAGA_ROOT)/make/saga.util.mk SAGA_SUBDIRS = config make external saga adaptors lite ifeq "x$(SAGA_HAVE_LITE)" "xyes" SAGA_SUBDIRS += lite endif SAGA_SUBDIRS += bindings test examples tools docs include $(SAGA_ROOT)/make/saga.mk .PHONY: doxygen doxygen: @$(MAKE) -C docs doxygen stats: @cd saga && kloc -gs -d @sloccount saga 2>>/dev/null distclean:: @$(RM) -r doc/doxygen/ doc/doxygen.*.conf doxygen.*.log @$(RM) Makefile.ok clean:: @$(RM) -r saga-a-$(SAGA_VERSION) saga-a-$(SAGA_VERSION).tgz @$(RM) $(SAGA_ROOT)/.saga_check_failed dist: @$(MAKE) distclean @test -e saga-a-$(SAGA_VERSION) || ln -s . saga-a-$(SAGA_VERSION) @test ! -e saga-a-$(SAGA_VERSION).tgz || rm saga-a-$(SAGA_VERSION).tgz @tar chvf - --exclude CVS \ --exclude .\#\* \ --exclude .svn \ saga-a-$(SAGA_VERSION)/{configure.in,configure,Makefile} \ saga-a-$(SAGA_VERSION)/{VERSION,README,LICENSE,CHANGES,INSTALL} \ saga-a-$(SAGA_VERSION)/external/{Makefile,boost,soci,u2nt} \ saga-a-$(SAGA_VERSION)/{docs,config,make,saga,test,adaptors,project,examples,lite,tools,bindings} \ | gzip -c > saga-a-$(SAGA_VERSION).tgz @$(RM) saga-a-$(SAGA_VERSION) packages: @./configure --prefix=`pwd`/usr @$(MAKE) install @tar zcvf @tar zcvf libsaga++-$(SAGA_VERSION).tgz usr/ @sudo alien -to-deb libsaga++-$(SAGA_VERSION).tgz @sudo alien -to-rpm libsaga++-$(SAGA_VERSION).tgz @sudo alien -to-slp libsaga++-$(SAGA_VERSION).tgz @sudo alien -to-pkg libsaga++-$(SAGA_VERSION).tgz @$(RM) -r ./usr/ check:: @$(TEST) -e $(SAGA_ROOT)/.saga_check_failed \ && $(RM) $(SAGA_ROOT)/.saga_check_failed \ && $(ECHO) "====================================" \ && $(ECHO) "=== Some SAGA Check failed =========" \ && $(ECHO) "====================================" \ && $(FALSE) # directory dependencies make: config external: make saga: external adaptors: saga lite: adaptors bindings: adaptors test: adaptors examples: adaptors tools: adaptors docs: adaptors