2017-12-19 10:19:35 +00:00
|
|
|
.PHONY: host host-native docs clean \
|
|
|
|
unit-tests integration-tests \
|
|
|
|
run run-local run-remote run-sgx
|
2017-12-13 17:45:33 +00:00
|
|
|
|
|
|
|
# === GENERAL PARAMETERS ==========================================================================
|
|
|
|
|
|
|
|
SHELL = /bin/bash
|
|
|
|
MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
2017-12-19 10:19:35 +00:00
|
|
|
GRADLE_HOME ?= $(MAKEFILE_DIR)/../.gradle/
|
|
|
|
GRADLE ?= $(MAKEFILE_DIR)/../gradlew -g $(GRADLE_HOME)
|
2017-12-13 17:45:33 +00:00
|
|
|
|
|
|
|
# === PSEUDO TARGETS ==============================================================================
|
|
|
|
|
|
|
|
host:
|
|
|
|
$(GRADLE) compileKotlin
|
|
|
|
|
|
|
|
host-native:
|
|
|
|
make -C native all
|
|
|
|
|
|
|
|
docs:
|
2017-12-19 10:19:35 +00:00
|
|
|
$(GRADLE) cleanDokka dokka
|
2017-12-13 17:45:33 +00:00
|
|
|
|
2017-12-19 10:19:35 +00:00
|
|
|
unit-tests:
|
|
|
|
$(GRADLE) --rerun-tasks -q -Pdebug=$(DEBUG) test
|
2017-12-13 17:45:33 +00:00
|
|
|
|
2017-12-19 10:19:35 +00:00
|
|
|
integration-tests:
|
|
|
|
$(GRADLE) --rerun-tasks -q -Pdebug=$(DEBUG) integrationTest
|
2017-12-13 17:45:33 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(GRADLE) clean
|
|
|
|
|
|
|
|
# === TEST TARGETS ================================================================================
|
|
|
|
|
2017-12-19 10:19:35 +00:00
|
|
|
run:
|
|
|
|
$(GRADLE) -q -Pdebug=$(DEBUG) runFlow
|
2017-12-13 17:45:33 +00:00
|
|
|
|
2017-12-19 10:19:35 +00:00
|
|
|
run-local:
|
|
|
|
$(GRADLE) -q -Pdebug=$(DEBUG) runFlowWithNativeDebugger
|
2017-12-13 17:45:33 +00:00
|
|
|
|
2017-12-19 10:19:35 +00:00
|
|
|
run-sgx:
|
|
|
|
$(GRADLE) -q -Pdebug=$(DEBUG) runFlowWithNativeSgxDebugger
|
2017-12-13 17:45:33 +00:00
|
|
|
|
2017-12-19 10:19:35 +00:00
|
|
|
run-remote:
|
|
|
|
$(GRADLE) -q -Pdebug=$(DEBUG) runFlowWithNativeDebugServer
|