-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
82 lines (57 loc) · 1.21 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
80
81
#
CURRENT_VERSION=$(shell grep version pom.xml | head -n2 | tail -n1 | tr -d ' ' | tr '<>' '|' | cut -d'|' -f3)
# Set up maven binary, also an alias for skipTests.
notest=false
MAVEN_PARALLELISM=4
ifneq ($(notest), false)
MVN=mvn -T$(MAVEN_PARALLELISM) -DskipTests
else
MVN=mvn -T$(MAVEN_PARALLELISM)
endif
ifeq ($(env), azure)
MVN=mvn -T$(MAVEN_PARALLELISM) -P azure
endif
RSYNC=rsync --progress -vzr
ifeq ($(env), azure)
HOST=$(host)
DESTINATION=/opt/tomcat/
WEBAPPS=$(HOST):$(DESTINATION)core-services/webapps
RSYNC=rsync --progress -vzr --chmod=a+wrx --perms
endif
all: install
uman: clean
$(MVN) package -DskipTests=true -am --projects user-manager/service
uman-deploy:
$(RSYNC) user-manager/service/target/*.war $(WEBAPPS)/user-manager.war
uman-full: uman uman-deploy
#
# Local Targets
#
-include Makefile.local
#
#
# Code Generation
#
#
#
#
# Standard Maven targets
#
#
compile:
$(MVN) clean compile
dependencies:
$(MVN) install -DskipTests
mvn dependency:tree
package:
$(MVN) clean package
test:
$(MVN) clean test
install:
$(MVN) clean install
eclipse:
$(MVN) eclipse:clean eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
clean:
$(MVN) clean
release:
env MVN=mvn ./release.sh