Compile binary to ./bin
This commit is contained in:
parent
9c024454f2
commit
9b20413d64
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,7 +6,7 @@
|
|||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
|
||||||
lume
|
/bin
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
6
Makefile
6
Makefile
@ -1,12 +1,14 @@
|
|||||||
V ?= 0
|
V ?= 0
|
||||||
Q = $(if $(filter 1, $V),, @)
|
Q = $(if $(filter 1, $V),, @)
|
||||||
|
|
||||||
|
BIN_DIR=./bin
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
EXE=lume.exe
|
EXE=$(BIN_DIR)/lume.exe
|
||||||
RM=del /f /q
|
RM=del /f /q
|
||||||
BUILD_DATE=$(shell powershell Get-Date -Format "yyyy-MM-ddThh:mm:sszzz")
|
BUILD_DATE=$(shell powershell Get-Date -Format "yyyy-MM-ddThh:mm:sszzz")
|
||||||
else
|
else
|
||||||
EXE=lume
|
EXE=$(BIN_DIR)/lume
|
||||||
RM=rm -f
|
RM=rm -f
|
||||||
BUILD_DATE=$(shell date --iso-8601=seconds)
|
BUILD_DATE=$(shell date --iso-8601=seconds)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user