-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile
57 lines (46 loc) · 1.96 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
######################
# Makefile #
######################
DP3T_SDK = dpppt-backend-sdk
DP3T_SDK_WS = $(DP3T_SDK)/dpppt-backend-sdk-ws
FILE_NAME = documentation.tex
LATEX = xelatex
BIBER = biber
RUSTY_SWAGGER = rusty-swagger
all: clean all1
all1: clean updateproject updatedoc swagger la la2 la3
no: clean updateproject updatedoc swagger la la2
docker-build: updateproject docker
doc: updatedoc swagger la la2 la3
test: clean run-test
run-test:
mvn -f $(DP3T_SDK)/pom.xml test
package:
mvn -f $(DP3T_SDK)/pom.xml clean package
updateproject:
mvn -f $(DP3T_SDK)/pom.xml package -DskipTests
updatedoc:
mvn -f $(DP3T_SDK)/pom.xml package -Dmaven.test.skip=true
mvn springboot-swagger-3:springboot-swagger-3 -f $(DP3T_SDK_WS)/pom.xml
cp $(DP3T_SDK_WS)/generated/swagger/swagger.yaml documentation/yaml/sdk.yaml
swagger:
cd documentation; $(RUSTY_SWAGGER) --file ../$(DP3T_SDK_WS)/generated/swagger/swagger.yaml
la:
cd documentation;$(LATEX) $(FILE_NAME)
bib:
cd documentation;$(BIBER) $(FILE_NAME)
la2:
cd documentation;$(LATEX) $(FILE_NAME)
la3:
cd documentation;$(LATEX) $(FILE_NAME)
show:
cd documentation; open $(FILE_NAME).pdf &
docker:
cp $(DP3T_SDK_WS)/target/dpppt-backend-sdk-ws.jar ws-sdk/ws/bin/dpppt-backend-sdk-ws-1.0.0.jar
docker build -t dp3t-docker ws-sdk/
@printf '\033[33m DO NOT USE THIS IN PRODUCTION \033[0m \n'
@printf "\033[32m docker run -p 8080:8080 -v $(PWD)/$(DP3T_SDK_WS)/src/main/resources/logback.xml:/home/ws/conf/dpppt-backend-sdk-ws-logback.xml -v $(PWD)/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/resources/application.properties:/home/ws/conf/dpppt-backend-sdk-ws.properties dp3t-docker \033[0m\n"
clean:
mvn -f $(DP3T_SDK)/pom.xml clean
@rm -f $(DP3T_SDK_WS)/dp3t-ws.log*
@rm -f documentation/*.log documentation/*.aux documentation/*.dvi documentation/*.ps documentation/*.blg documentation/*.bbl documentation/*.out documentation/*.bcf documentation/*.run.xml documentation/*.fdb_latexmk documentation/*.fls documentation/*.toc