This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
36 lines (27 sloc)
786 Bytes
SHELL := /bin/bash | |
PLATFORM := $(shell go env GOOS) | |
ARCH := $(shell go env GOARCH) | |
GOPATH := $(shell go env GOPATH) | |
GOBIN := $(GOPATH)/bin | |
default: build validate test | |
get-deps: | |
go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/staticcheck | |
build: | |
go fmt ./... | |
DEP_BUILD_PLATFORMS=$(PLATFORM) DEP_BUILD_ARCHS=$(ARCH) ./hack/build-all.bash | |
cp ./release/dep-$(PLATFORM)-$(ARCH) dep | |
licenseok: | |
go build -o licenseok ./hack/licenseok/main.go | |
validate: build licenseok | |
./dep check | |
./hack/lint.bash | |
./hack/validate-licence.bash | |
test: build | |
./hack/test.bash | |
install: build | |
cp ./dep $(GOBIN) | |
docusaurus: | |
docker run --rm -it -v `pwd`:/dep -p 3000:3000 \ | |
-w /dep/website node \ | |
bash -c "npm i --only=dev && npm start" | |
.PHONY: build validate test install docusaurus |