From 9b20413d649ab3aa7256d752799182278d083b6d Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Mar 2021 23:57:52 -0500 Subject: [PATCH] Compile binary to ./bin --- .gitignore | 2 +- Makefile | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f387903..cfed330 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ *.so *.dylib -lume +/bin # Test binary, built with `go test -c` *.test diff --git a/Makefile b/Makefile index 589178f..d83199d 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ V ?= 0 Q = $(if $(filter 1, $V),, @) +BIN_DIR=./bin + ifeq ($(OS), Windows_NT) - EXE=lume.exe + EXE=$(BIN_DIR)/lume.exe RM=del /f /q BUILD_DATE=$(shell powershell Get-Date -Format "yyyy-MM-ddThh:mm:sszzz") else - EXE=lume + EXE=$(BIN_DIR)/lume RM=rm -f BUILD_DATE=$(shell date --iso-8601=seconds) endif