Compare commits

...

2 Commits

Author SHA1 Message Date
Anthony Axenov 4327127200
Fixed makefile 2024-02-05 23:12:01 +08:00
Anthony Axenov 08b4ec19d7
Update Makefile
Small fixes
2022-07-08 14:52:24 +08:00
1 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,3 @@
# https://habr.com/ru/post/461467/
# https://tutorialedge.net/golang/makefiles-for-go-developers/
# https://earthly.dev/blog/golang-makefile/
BINARY_NAME=csv2md
ARCH=amd64
@ -32,7 +29,7 @@ darwin:
@rm -rf ${DARWIN_PATH}
@GOARCH=${ARCH} GOOS=darwin go build -o ${DARWIN_FILE} . && echo "Compiled: ${DARWIN_FILE}"
## build: Build new binaries for linux, windows and darwin (x64)
## all: Build new binaries for linux, windows and darwin (x64)
all: clean linux win darwin
## release: Build all binaries and zip them
@ -41,7 +38,7 @@ release: clean darwin linux win
@zip -j ${DARWIN_PATH}.zip ${DARWIN_FILE}
@zip -j ${WINDOWS_PATH}.zip ${WINDOWS_FILE}
## compile: This message
## help: This message
help: Makefile
@echo "Choose a command run:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'