From 8a7e99234fb67668ae25e4bdbeb4ccf501c8f7da Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 1 Mar 2021 22:59:11 -0600 Subject: [PATCH] Add Windows support to Makefile --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 44733c5..8193a12 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ +ifeq ($(OS), Windows_NT) + EXE=lume.exe + RM=del /f +else + EXE=lume + EXE=rm -f +endif + .PHONY: build build: - go build -o lume ./cmd/lume + go build -o ${EXE} ./cmd/lume .PHONY: clean clean: - rm -f ./lifx + ${RM} ${EXE}