forked from rdiankov/openrave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 1.13 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
CMAKE_BUILD_TYPE=$(shell if [ $(DEBUG) ]; then echo Debug; else echo RelWithDebInfo; fi)
all:
@mkdir -p build; rm -f build/CMakeCache.txt
@if [ $(prefix) ]; then \
cd build && cmake -DCMAKE_INSTALL_PREFIX=$(prefix) -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) ..; \
else \
cd build && cmake -DCMAKE_VERBOSE_MAKEFILE=OFF -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) ..; \
fi
cd build && $(MAKE) $(PARALLEL_JOBS)
install:
cd build && $(MAKE) $(PARALLEL_JOBS) install
uninstall:
cd build && $(MAKE) uninstall
test: all
cd build && $(MAKE) $(PARALLEL_JOBS) install
export PATH=`sh build/openrave-config --prefix`/bin:$(PATH) && export PYTHONPATH=`openrave-config --python-dir`:$(PYTHONPATH) && export LD_LIBRARY_PATH=`openrave-config --prefix`/lib:$(LD_LIBRARY_PATH) && cd test && python run_tests.py $PARALLEL_JOBS
docs: all
cd build && $(MAKE) $(PARALLEL_JOBS) install
export PATH=`sh build/openrave-config --prefix`/bin:$(PATH) && export PYTHONPATH=`openrave-config --python-dir`:$(PYTHONPATH) && export LD_LIBRARY_PATH=`openrave-config --prefix`/lib:$(LD_LIBRARY_PATH) && cd docs && ./build.sh
clean:
-cd build && $(MAKE) clean
rm -rf build