-
Notifications
You must be signed in to change notification settings - Fork 66
/
Makefile
48 lines (43 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
# Phoenix stack setup, build code base and deployer tool.
#
# Targets (see each target for more information):
# all: install/build/deploy.
# install : Install environment stacks
# build: Build code.
# deploy: Deploy the EAR to WILDFLY.
# clean: Remove old EAR from Wildfly.
# remove: Remove all the stacks.
INSTALL_DIR = ${HOME}/EGOV-PHOENIX-STACK
###############
#-include: ./dev-utils/setenv.sh
all: install build deploy
.PHONY: all
###############
.PHONY: install
install:
@echo "[ ** INSTALL ** ] - Install PHOENIX Stack"
@eval ./dev-utils/ansible/install.sh ${INSTALL_DIR}
###############
.PHONY: build
build:
@echo "[ ** BUILD ** ] - Build PHOENIX code base"
@eval ./dev-utils/build.sh
###############
.PHONY: deploy
deploy:
@echo "[ ** DEPLOY ** ] - Deploy the EAR artifacts to WILDFLY"
@eval ./dev-utils/deployment/deploy.sh
###############
.PHONY: upgrade
upgrade:
@eval ./dev-utils/deployment/tools-update.sh ${INSTALL_DIR} "${name}" "${version}"
###############
.PHONY: clean
clean:
@echo "[ ** CLEAN ** ] - Remove old deployments."
@eval ./dev-utils/deployment/deploy.sh "clean"
###############
.PHONY: remove
remove:
@echo "[ ** Remove ** ] - Remove all the stacks."
@rm -rf ${INSTALL_DIR}