Skip to content

Commit

Permalink
Debugged Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tryptichon committed Mar 29, 2022
1 parent 8eaf4c6 commit 33ff518
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
PACKAGE_VERSION := $(shell cat ./VERSION)
PROJECT_VERSION := $(shell cat ./VERSION)
MVN_OPTIONS ?= -T 1C

compile: set_version
compile: .version
mvn $(MVN_OPTIONS) compile

install: set_version
install: .version
mvn $(MVN_OPTIONS) install

deploy: set_version
deploy: .version
mvn $(MVN_OPTIONS) deploy

set_version:
mvn $(MVN_OPTIONS) versions:set -DallowSnapshots=true -DnewVersion="$(PACKAGE_VERSION)" || true
.version: VERSION
mvn $(MVN_OPTIONS) versions:set -DallowSnapshots=true -DnewVersion="$(PROJECT_VERSION)" || true
mvn $(MVN_OPTIONS) versions:commit
echo "$(PROJECT_VERSION)" > .version

clean:
mvn $(MVN_OPTIONS) clean
mvn $(MVN_OPTIONS) clean
rm -f .version

0 comments on commit 33ff518

Please sign in to comment.