fleet/Makefile

45 lines
958 B
Makefile
Raw Normal View History

.PHONY: build
all: build
.prefix:
ifeq ($(OS), Windows_NT)
if not exist build mkdir build
else
mkdir -p build
endif
build: .prefix
ifeq ($(OS), Windows_NT)
go build -o build/kolide.exe
else
go build -o build/kolide
endif
test:
go vet $(shell glide nv)
go test -v -cover $(shell glide nv)
generate: .prefix
go-bindata -pkg=server -o=server/bindata.go frontend/templates/ build/
2016-09-06 15:08:11 +00:00
$(shell npm bin)/webpack --progress --colors --bail
generate-dev: .prefix
go-bindata -debug -pkg=server -o=server/bindata.go frontend/templates/ build/
$(shell npm bin)/webpack --progress --colors --bail
deps:
npm install
go get -u github.com/Masterminds/glide
2016-08-10 15:31:27 +00:00
go get -u github.com/jteeuwen/go-bindata/...
glide install
2016-08-10 15:31:27 +00:00
distclean:
rm -rf build/*
rm -rf vendor/*
docker:
docker pull kolide/kolide-builder:1.7
docker run --rm -it -v $(shell pwd):/go/src/github.com/kolide/kolide-ose -v ${GOPATH}/pkg:/go/pkg kolide/kolide-builder:1.7 -B
docker-compose up