mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 15:33:06 +00:00
7f09c6cf0c
Avoid always compiling the git bridge on start GitOrigin-RevId: 2b8d4cf29c243d5de5f4cd026c63e1c8406771da
30 lines
562 B
Makefile
30 lines
562 B
Makefile
# git-bridge makefile
|
|
|
|
MVN_OPTS := --no-transfer-progress
|
|
MVN_TARGET := target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar
|
|
|
|
runtime-conf:
|
|
/opt/envsubst < conf/envsubst_template.json > conf/runtime.json
|
|
|
|
|
|
run: $(MVN_TARGET) runtime-conf
|
|
java $(GIT_BRIDGE_JVM_ARGS) -jar $(MVN_TARGET) conf/runtime.json
|
|
|
|
|
|
$(MVN_TARGET): $(shell find src -type f)
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
|
|
test:
|
|
mvn $(MVN_OPTS) test
|
|
|
|
|
|
clean:
|
|
mvn $(MVN_OPTS) clean
|
|
|
|
|
|
package: clean
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
|
|
.PHONY: run package clean test runtime-conf
|