source: orange/source/orangeqt/Makefile @ 11643:9097e985303b

Revision 11643:9097e985303b, 693 bytes checked in by janezd <janez.demsar@…>, 9 months ago (diff)

Added parentheses in prints in setup of orangeqt for compatibility with Python 3.0.

Line 
1ORANGEQT_BUILD_DIR=build
2ifndef OLD
3  OLD=..
4endif
5ifndef PYTHON
6  PYTHON=$(shell which python)
7endif
8
9PYTHON_VERSION = $(shell $(PYTHON) -c 'import sys; print("%s.%s" % sys.version_info[:2])')
10OS = $(shell uname)
11
12all:
13    mkdir -p $(ORANGEQT_BUILD_DIR)
14    cd $(ORANGEQT_BUILD_DIR); cmake -DCMAKE_BUILD_TYPE=Release -DORANGE_LIB_DIR=$(abspath $(OLD)) -DPYTHON_EXECUTABLE=$(PYTHON) -DCMAKE_USE_PYTHON_VERSION=$(PYTHON_VERSION) $(EXTRA_ORANGEQT_CMAKE_ARGS) ..
15    if ! $(MAKE) $@ -C $(ORANGEQT_BUILD_DIR); then exit 1; fi;
16ifeq ($(OS), Darwin)
17    install_name_tool -id $(DESTDIR)/orangeqt.so $(OLD)/orangeqt.so
18endif
19
20
21cleantemp:
22    rm -rf $(ORANGEQT_BUILD_DIR)
23
24clean: cleantemp
25    rm -f $(OLD)/orangeqt.so
Note: See TracBrowser for help on using the repository browser.