зеркало из https://github.com/Azure/draft-classic.git
ref(Makefile): add auto gen packs bindata condition
This commit is contained in:
Родитель
05a52f9e83
Коммит
98e0f5f225
8
Makefile
8
Makefile
|
@ -23,8 +23,14 @@ SHELL=/bin/bash
|
|||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: check-then-generate
|
||||
check-then-generate:
|
||||
@if [[ -n $$(git status --porcelain packs/) ]]; then \
|
||||
go generate ./pkg/draft/pack/generated; \
|
||||
fi
|
||||
|
||||
.PHONY: build
|
||||
build: generate
|
||||
build: check-then-generate
|
||||
build:
|
||||
GOBIN=$(BINDIR) $(GO) install $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' github.com/Azure/draft/cmd/...
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче