-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (43 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright (c) 2005-2006 Andre Merzky ([email protected])
#
# 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)
# support out-of-the-box 'make srcdist'
-include $(SAGA_LOCATION)/share/saga/make/saga.dist.mk
# normal make includes
-include config/make.cfg
-include config/saga.config.python.c.mk
SAGA_SUBDIRS = config docs
ifeq "$(SAGA_HAVE_PYTHON)-$(SAGA_HAVE_BOOST_PYTHON)" "yes-yes"
SAGA_SUBDIRS += external engine packages
ifeq "$(SAGA_BOOST_HAVE_TEST)" "yes"
ifdef SAGA_IS_CHECKING
SAGA_SUBDIRS += test
endif
endif
endif
all:: config/make.cfg
ifndef SAGA_IS_PACKAGING
config/make.cfg:
@echo ""
@echo " ================================= "
@echo " you need to run configure first "
@echo " ================================= "
@echo ""
@false
endif
-include $(SAGA_MAKE_INCLUDE_ROOT)/saga.mk
-include $(SAGA_MAKE_INCLUDE_ROOT)/saga.dist.mk
distclean:: config/make.cfg
@$(FIND) . -name \*.pyc -exec $(RM) {} \;
@$(RM) config.log
@$(RM) config.status
@$(RM) config.summary
@$(RM) saga-bindings-python.deb.ctrl
@$(RM) -r tmp_install/
# directory dependencies
engine: external
packages: external
test: engine
test: packages