-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 790 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 790 Bytes
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
ifneq ($(MAKECMDGOALS),$(findstring $(MAKECMDGOALS),build-doc-image run-doc-image version))
VERSION := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
else
ifneq (version,$(firstword $(MAKECMDGOALS)))
VERSION := latest
endif
endif
$(eval $(VERSION):;@:)
clean:
mvn clean
build: clean
mvn package
test: clean
mvn test
deploy: clean
mvn deploy -DskipTests=true
deploy-st: clean
mvn deploy -Dperform-sonatype-release
version:
mvn versions:set -DnewVersion=${VERSION}
mvn package -DskipTests
ver: version
clean-doc:
rm -rf ./site
build-doc: clean-doc
sphinx-build -W -b html ./docs ./site
build-doc-image:
docker build --no-cache -t shields4j/doc:${VERSION} -f .docs/Dockerfile .
run-doc-image: build-doc-image
docker run -p 8080:80 shields4j/doc:${VERSION}