overleaf/services/git-bridge/Makefile

31 lines
562 B
Makefile
Raw Normal View History

2018-10-08 09:36:20 +00:00
# git-bridge makefile
MVN_OPTS := --no-transfer-progress
MVN_TARGET := target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar
2018-10-15 10:06:18 +00:00
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
2018-10-08 09:36:20 +00:00
$(MVN_TARGET): $(shell find src -type f)
mvn $(MVN_OPTS) package -DskipTests
2018-10-08 09:36:20 +00:00
test:
mvn $(MVN_OPTS) test
2018-10-08 09:36:20 +00:00
clean:
mvn $(MVN_OPTS) clean
2018-10-08 09:36:20 +00:00
package: clean
mvn $(MVN_OPTS) package -DskipTests
2018-10-08 09:36:20 +00:00
.PHONY: run package clean test runtime-conf