dip/vendor/github.com/gobuffalo/packr/v2/Makefile

48 lines
720 B
Makefile
Raw Normal View History

TAGS ?= "sqlite"
GO_BIN ?= go
install: deps
2020-01-26 16:38:57 +01:00
echo "installing packr v2"
packr2
$(GO_BIN) install -v ./packr2
tidy:
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
else
echo skipping go mod tidy
endif
deps:
$(GO_BIN) get github.com/gobuffalo/release
$(GO_BIN) get -tags ${TAGS} -t ./...
2020-01-26 16:38:57 +01:00
$(GO_BIN) install -v ./packr2
make tidy
build: deps
2020-01-26 16:38:57 +01:00
packr2
$(GO_BIN) build -v ./packr2
make tidy
test:
2020-01-26 16:38:57 +01:00
packr2
$(GO_BIN) test -tags ${TAGS} ./...
make tidy
lint:
gometalinter --vendor ./... --deadline=1m --skip=internal
update:
2020-01-26 16:38:57 +01:00
$(GO_BIN) get -u -tags ${TAGS} ./...
make tidy
make install
2020-01-26 16:38:57 +01:00
make test
make tidy
release-test:
$(GO_BIN) test -tags ${TAGS} -race ./...
release:
release -y -f version.go
make tidy