corda/sgx-jvm/remote-attestation/host/Makefile
Tommy Lillehagen fbcdc23434
ENT-1012 - Make SGX builds IntelliJ-friendly (#208)
* ENT-1012 - Use non-privileged user

* ENT-1012 - Build and run containerised tests from IntelliJ

* ENT-1012 - Remove trusty source in container

* ENT-1012 - Make debug target toggleable

* ENT-1012 - Inform when ready to attach debugger

* ENT-1012 - Update reference to user home folder
2017-12-19 10:19:35 +00:00

45 lines
1.2 KiB
Makefile

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