-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
27 lines (19 loc) · 624 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
#!make
ifeq ($(OS),Windows_NT)
SHELL ?= cmd
else
SHELL ?= /bin/bash
endif
#JAR_VERSION := $(shell mvn -q -Dexec.executable="echo" -Dexec.args='$${project.version}' --non-recursive exec:exec -DforceStdout)
JAR_VERSION := 2.04
JAR_FILE := mn2pdf-$(JAR_VERSION).jar
all: target/$(JAR_FILE)
target/$(JAR_FILE):
mvn --settings settings.xml -DskipTests clean package shade:shade
test: target/$(JAR_FILE)
mvn --settings settings.xml test surefire-report:report
deploy:
mvn --settings settings.xml -Dmaven.test.skip=true clean deploy shade:shade
clean:
mvn clean
.PHONY: all clean test deploy version target/$(JAR_FILE)