mig-sandbox/Makefile

22 строки
694 B
Makefile

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
OS := $(shell uname -s| tr '[:upper:]' '[:lower:]')
ARCH := amd64
GO := GOOS=$(OS) GOARCH=$(ARCH) GO15VENDOREXPERIMENT=1 go
GOGETTER := GOPATH=$(shell pwd)/.tmpdeps go get -d
all: build
build:
$(GO) build
go_vendor_dependencies:
$(GOGETTER) github.com/seccomp/libseccomp-golang
echo 'removing .git from vendored pkg and moving them to vendor'
find .tmpdeps/src -type d -name ".git" ! -name ".gitignore" -exec rm -rf {} \; || exit 0
cp -ar .tmpdeps/src/* vendor/
rm -rf .tmpdeps