Первый прототип с основными возможностями

This commit is contained in:
2024-07-31 07:58:22 +03:00
parent 423cff473f
commit cf036565c4
41 changed files with 6969 additions and 2 deletions

22
Makefile Normal file
View 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