Первый прототип с основными возможностями
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
AIR_PACKAGE ?= github.com/air-verse/air@v1
|
||||
|
||||
GO ?= go
|
||||
HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
|
||||
|
||||
GOFLAGS := -v
|
||||
EXECUTABLE ?= muninn
|
||||
|
||||
.PHONY: $(EXECUTABLE)
|
||||
$(EXECUTABLE):
|
||||
$(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
||||
|
||||
.PHONY: build
|
||||
build: $(EXECUTABLE)
|
||||
|
||||
.PHONY: deps-tools
|
||||
deps-tools:
|
||||
$(GO) install $(AIR_PACKAGE)
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
$(GO) run $(AIR_PACKAGE) -c .air.toml
|
||||
Reference in New Issue
Block a user