forked from kcl-lang/kcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 666 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2021 The KCL Authors. All rights reserved.
PROJECT_NAME = KCLVM
PWD:=$(shell pwd)
KCLVM_VERSION := $(shell cat VERSION)
BUILD_IMAGE:=kusionstack/kclvm-builder
# export DOCKER_DEFAULT_PLATFORM=linux/amd64
# or
# --platform linux/amd64
RUN_IN_DOCKER:=docker run -it --rm
RUN_IN_DOCKER+=-v ~/.ssh:/root/.ssh
RUN_IN_DOCKER+=-v ~/.gitconfig:/root/.gitconfig
RUN_IN_DOCKER+=-v ~/go/pkg/mod:/go/pkg/mod
RUN_IN_DOCKER+=-v ${PWD}:/root/kclvm
RUN_IN_DOCKER+=-w /root/kclvm ${BUILD_IMAGE}
# ----------------
# KCLVM build
# ----------------
build:
${PWD}/run.sh -a build
# ----------------
# Docker
# ----------------
sh-in-docker:
${RUN_IN_DOCKER} bash