corda/sgx-jvm/containers/core/Makefile
Tommy Lillehagen c6bed31f58
ENT-1012 - Add build container and sx utility (#171)
* ENT-1012 - Add build container and sx utility

* ENT-1012 - Add readme file for the sx utility

* ENT-1012 - Check that Docker is installed

* ENT-1256 - Add ProGuard 6 Beta dependency

* ENT-1012 - Phony targets in container build
2017-12-15 13:12:16 +00:00

22 lines
700 B
Makefile

.PHONY: container sgsdk
SHELL = /bin/bash
MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
container: Dockerfile
docker build -t sgx-ra-core .
sgxsdk:
@mkdir -p ~/.container/sgx
@if [ ! -e ~/.container/sgx/sgxsdk ]; then \
docker run --rm \
-v ${HOME}/.container/sgx:/sgx \
-v ${MAKEFILE_DIR}/../../../../:/code sgx-ra-core bash \
/code/sgx-jvm/linux-sgx/linux/installer/bin/build-installpkg.sh sdk; \
docker run --rm \
-v ${HOME}/.container/sgx:/sgx \
-v ${MAKEFILE_DIR}/../../../../:/code -it sgx-ra-core bash \
/code/sgx-jvm/linux-sgx/linux/installer/bin/sgx_linux_x64_sdk_1.9.100.39124.bin \
-prefix=/sgx; \
fi