Работа над описанием приложени, запрет закрытия листа через q/esc, правки конфига
This commit is contained in:
parent
953575e03f
commit
3084dce4e2
13 changed files with 147 additions and 45 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
SHELL := /bin/bash
|
||||
#include .env
|
||||
.SILENT:
|
||||
|
||||
#$(eval export $(shell sed -ne 's/ *#.*$$//; /./ s/=.*$$// p' .env))
|
||||
|
||||
##@ System
|
||||
.PHONY: help
|
||||
|
||||
help: ## Display this help screen
|
||||
awk 'BEGIN {FS = ":.*##"; printf "\033[33mUsage:\n \033[37mmake <target>\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[32m%-18s\033[36m%s\033[37m\n", $$1, $$2 } /^##@/ { printf "\n \033[33m%s\n", substr($$0, 5) }' $(MAKEFILE_LIST)
|
||||
|
||||
|
||||
##@ Application
|
||||
.PHONY: go-lin-build go-lin-run brun
|
||||
|
||||
brun: go-lin-build go-lin-run ## Build and run for linux
|
||||
|
||||
go-lin-run: ## Run linux binary
|
||||
./build/Setup
|
||||
|
||||
go-build: go-lin-build ## Build binary
|
||||
|
||||
go-lin-build: ## Build go binary for linux
|
||||
set GOARCH=amd64&& set GOOS=linux&& go build -ldflags "-s -w" -o build/Setup cmd/main.go
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue