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 a2dca1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 a2dca1b

Please sign in to comment.