-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
79 lines (60 loc) · 2.73 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
################################################################################
## -------------------------------------------------------------------------- ##
## ##
## (C) 2010-2016 Robot Developers ##
## See LICENSE for licensing info ##
## ##
## -------------------------------------------------------------------------- ##
################################################################################
makepp_no_builtin = 1
##----------------------------------------------------------------------------##
## Help ##
##----------------------------------------------------------------------------##
.PHONY: help
help:
@echo
@echo "WELCOME TO ROBOT"
@echo "----------------"
@echo
@echo "MAKE"
@echo " $$ make help - Prints out these help instructions"
@echo " $$ make build - Builds robot as a static library"
@echo " $$ make clean - Cleans and removes generated files"
@echo " $$ make install - Installs robot onto your system"
@echo " $$ make remove - Removes robot from your system"
@echo " $$ make test - Builds the robot testing framework"
@echo
@echo "MODES"
@echo " This project can be built using debug or release settings"
@echo " By default, this project is built using release settings"
@echo " $$ make mode=debug <cmd> -or- $$ make mode=release <cmd>"
@echo
@echo "DOCS"
@echo " Visit http://getrobot.net for product documentation"
@echo
##----------------------------------------------------------------------------##
## Build ##
##----------------------------------------------------------------------------##
.PHONY: all _init build test clean
all: build test
_init:
ifeq ($(mode), debug)
@echo "Building with debug settings"
else
@echo "Building with release settings"
endif
build: _init
cd Source; make _build=robot --no-print-directory build
test: _init
cd Test; make _build=robot --no-print-directory build
clean:
cd Source; make _build=robot --no-print-directory clean
cd Test; make _build=robot --no-print-directory clean
##----------------------------------------------------------------------------##
## Install ##
##----------------------------------------------------------------------------##
.PHONY: install remove
install:
cd Source; make _build=robot --no-print-directory install
remove:
cd Source; make _build=robot --no-print-directory remove