source: orange/source/orangeqt/Makefile @ 9934:fb5f13029bd9

Revision 9934:fb5f13029bd9, 693 bytes checked in by Matija Polajnar <matija.polajnar@…>, 2 years ago (diff)

Revert marko's unintended changes to 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.