-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (25 loc) · 760 Bytes
/
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
.PHONY: build # Build the project
build: pom.xml
mvn install
.PHONY: test # Build and run tests
test:
mvn test
.PHONY: clean # Clean the project
clean:
rm -r target
.PHONY: distclean # Also clean generated project files
distclean: clean
rm pom.xml .project .classpath
rm -r .settings
#PHONY: pom.xml # Generate pom.xml
pom.xml: pom.scala
mvn -Pgen-pom-xml initialize
.PHONY: eclipse # Generate eclipse project files
eclipse: pom.xml
mvn initialize de.tototec:de.tobiasroeser.eclipse-maven-plugin:0.1.1:eclipse
.PHONY: help # List of targets with descriptions
help:
@grep '^[#.]PHONY: .* #' Makefile | sed 's/[#.]PHONY: \(.*\) # \(.*\)/\1\t\2/' | expand -t20
.PHONY: deploy # Build and deploy to Maven central
deploy:
sh deploy-maven-central.sh