mirror of https://github.com/anthonyaxenov/csv2md
Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Anthony Axenov | 4327127200 | |
Anthony Axenov | 08b4ec19d7 |
7
Makefile
7
Makefile
|
@ -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/^/ /'
|
||||
|
|
Loading…
Reference in New Issue