-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrules
executable file
·41 lines (34 loc) · 1.36 KB
/
rules
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
#!/usr/bin/make -f
BUILDDIR = build_dir
COPPELIASIMTAG = coppeliasim-v4.4.0-rev0
# A more standardized naming of the version above
PACKAGETAG = 4.4.0-0
# secondly called by launchpad
build:
ifeq ($(CI),)
echo "Not CI, hopefully launchpad. Clonning submodules manually..."
rm -rf coppeliarobotics/{*,.*}
rm -rf coppeliarobotics
mkdir -p coppeliarobotics
git clone --single-branch --branch $(COPPELIASIMTAG) https://git.launchpad.net/~dqrobotics-dev/dqrobotics/+git/coppelia-include coppeliarobotics/include
git clone --single-branch --branch $(COPPELIASIMTAG) https://git.launchpad.net/~dqrobotics-dev/dqrobotics/+git/coppelia-remoteApi coppeliarobotics/remoteApi
else
echo "CI detected, skipping manual submodule load"
endif
mkdir $(BUILDDIR);
cd $(BUILDDIR); cmake -DCMAKE_CXX_FLAGS="-fdebug-prefix-map=$(shell pwd)/src/=/usr/src/ -fdebug-prefix-map=$(shell pwd)/include/=/usr/include/" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=../debian/tmp/usr ..
make -C $(BUILDDIR)
# thirdly called by launchpad
binary: binary-indep binary-arch
binary-indep:
# nothing to be done
binary-arch:
cd $(BUILDDIR); cmake -P cmake_install.cmake
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibdqrobotics-interface-vrep-$(PACKAGETAG)
dpkg --build debian/tmp ..
# firstly called by launchpad
clean:
rm -f build
rm -rf $(BUILDDIR)
.PHONY: binary binary-arch binary-indep clean