forked from RoboCup-SSL/grSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (29 loc) · 751 Bytes
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
BUILDDIR=build
#change to Debug for debug mode
BUILDTYPE=Release
#BUILDTYPE=Debug
BUILD_ODE=OFF
.PHONY: all build mkbuilddir cmake dist package deb install clean clean-all
all: build
deploy: dist upload
# requires pygithub3:
# pip install pygithub3
upload:
./upload.py --all
build: mkbuilddir cmake
$(MAKE) -C $(BUILDDIR)
mkbuilddir:
[ -d $(BUILDDIR) ] || mkdir $(BUILDDIR)
cmake: CMakeLists.txt
cd $(BUILDDIR) && cmake -DCMAKE_BUILD_TYPE=$(BUILDTYPE) -DBUILD_ODE=$(BUILD_ODE) ..
dist: package
package: all
$(MAKE) -C $(BUILDDIR) package
deb: all
cd $(BUILDDIR) && cpack -G DEB
install: all
$(MAKE) -C $(BUILDDIR) install
clean: mkkbuilddir cmake
$(MAKE) -C $(BUILDDIR) clean
clean-all: mkbuilddir
cd $(BUILDDIR) && rm -rf *