Add Windows support to Makefile

This commit is contained in:
Ryan Cavicchioni 2021-03-01 22:59:11 -06:00
parent bfb949ca5f
commit 8a7e99234f
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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}