mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 21:00:49 +00:00
da3d4fd4f5
[git-bridge] bring back "build" make target GitOrigin-RevId: 14b57aa437142d05db8b96218426a3e9385c2254
31 lines
597 B
Makefile
31 lines
597 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) pom.xml
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
build: $(MVN_TARGET)
|
|
|
|
test:
|
|
mvn $(MVN_OPTS) test
|
|
|
|
|
|
clean:
|
|
mvn $(MVN_OPTS) clean
|
|
|
|
|
|
package: clean
|
|
mvn $(MVN_OPTS) package -DskipTests
|
|
|
|
|
|
.PHONY: run package build clean test runtime-conf
|