-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.bak
38 lines (30 loc) · 899 Bytes
/
Makefile.bak
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
VERSION=$(shell cat VERSION)
#TOMCAT_HOME=/usr/share/tomcat/service-manager
TOMCAT=/Applications/Servers/tomcat
LOCAL=$(TOMCAT)/server-1/webapps
SERVER=/usr/share/tomcat/server-1/webapps
WAR=GateConverter\#$(VERSION).war
help:
@echo
@echo "GOALS"
@echo
@echo " war : generates the war file."
@echo " peace : an alias for the above."
@echo " clean : removes build artifacts."
@echo " deploy : copies the war to the local tomcat."
@echo "deploy-remote: uploads the war to the tomcat/webapps directory on the server"
@echo " upload : uploads the war to the LAPPS download area on anc.org"
@echo " help : prints this help screen."
@echo
war:
mvn package
peace:
mvn package
clean:
mvn clean
deploy:
sudo cp target/$(WAR) $(LOCAL)
upload:
anc-put target/$(WAR) /home/www/anc/LAPPS/downloads
deploy-remote:
grid-put target/$(WAR) $(SERVER)