-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (36 loc) · 966 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
45
46
47
CLIENT_DIR = client
SERVER_DIR = server
# indicate, that submodules are not files
.PHONY: setup check format client linter test clean deploy
all: server client
# install dependencies etc.
setup:
$(MAKE) -C $(CLIENT_DIR) setup
$(MAKE) -C $(SERVER_DIR) setup
# run static analysis tools
check:
$(MAKE) -C $(CLIENT_DIR) check
$(MAKE) -C $(SERVER_DIR) check
# Run automatic source code formatters
format:
$(MAKE) -C $(CLIENT_DIR) format
$(MAKE) -C $(SERVER_DIR) format
# build
client:
$(MAKE) -C $(CLIENT_DIR)
server:
$(MAKE) -C $(SERVER_DIR)
# run unit tests
test:
$(MAKE) -C $(CLIENT_DIR) test
$(MAKE) -C $(SERVER_DIR) test
# run a complete ci pipeline, like the Jenkinsfile would
# (this needs to be updated, when the Jenkinsfile is updated)
pipeline: setup check all test
clean:
$(MAKE) -C $(CLIENT_DIR) clean
$(MAKE) -C $(SERVER_DIR) clean
deploy:
$(MAKE) -C $(CLIENT_DIR) deploy
$(MAKE) -C $(SERVER_DIR) deploy
tools/createDeployable.sh