overleaf/services/git-bridge/Makefile

41 lines
735 B
Makefile
Raw Normal View History

2018-10-08 05:36:20 -04: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 06:06:18 -04: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 05:36:20 -04:00
$(MVN_TARGET): $(shell find src -type f) pom.xml
mvn $(MVN_OPTS) package -DskipTests
2018-10-08 05:36:20 -04:00
build: $(MVN_TARGET)
2018-10-08 05:36:20 -04:00
format:
mvn $(MVN_OPTS) com.spotify.fmt:fmt-maven-plugin:check
format_fix:
mvn $(MVN_OPTS) com.spotify.fmt:fmt-maven-plugin:format
2018-10-08 05:36:20 -04:00
test:
mvn $(MVN_OPTS) test
2018-10-08 05:36:20 -04:00
clean:
mvn $(MVN_OPTS) clean
2018-10-08 05:36:20 -04:00
package: clean
mvn $(MVN_OPTS) package -DskipTests
2018-10-08 05:36:20 -04:00
.PHONY: run package build clean test runtime-conf