Skip to content

Commit

Permalink
Add source build option to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Oct 16, 2024
1 parent efc4711 commit 7d61d0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export TZ = UTC # same as Github
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
export JAVA_HOME ?= /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home

MVN_OPTS = -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dspotbugs.skip=true

Expand All @@ -10,6 +10,14 @@ default: tool/target/gp.jar
tool/target/gp.jar: $(SOURCES)
./mvnw $(MVN_OPTS) package

srcbuild:
# override the version, which would be "unsupported" without a git checkout
ifdef GPPRO_VERSION
mkdir -p ./library/target/classes/pro/javacard/gp
echo "git.commit.id.describe=$(GPPRO_VERSION)" > ./library/target/classes/pro/javacard/gp/git.properties
endif
./mvnw $(MVN_OPTS) -Dmaven.gitcommitid.skip=true package

dep: $(SOURCES)
./mvnw $(MVN_OPTS) install

Expand Down

0 comments on commit 7d61d0d

Please sign in to comment.