mirror of
https://github.com/corda/corda.git
synced 2024-12-30 17:57:02 +00:00
c6bed31f58
* 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
22 lines
700 B
Makefile
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
|