source: orange/source/orangeqt/Makefile @ 9753:5bd4ce14f96d

Revision 9753:5bd4ce14f96d, 693 bytes checked in by markotoplak, 2 years ago (diff)

Merge. Fixed orangeqt Makefile.

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.