aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-12-01 18:11:25 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-12-01 18:11:25 -0800
commit8d9e6a2c62a4a2b684b2f67b512d7047ca5c2f2a (patch)
tree1c9353821173b9b7ef57b8ef5b9d8c0a3ceca5c1 /Makefile
parente47188eab26431663861c16842ef6726f46e0dbe (diff)
Add Windows build target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 896fb19..7c22c66 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,8 @@ LD_FLAGS := "-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
-.PHONY: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin freebsd openbsd build run clean test lint integration-test clean-integration-test
+.PHONY: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin freebsd openbsd windows-amd64 build run clean test lint integration-test clean-integration-test
+
linux-amd64:
@ go generate
@@ -39,7 +40,11 @@ openbsd:
@ go generate
@ GOOS=openbsd GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-openbsd-amd64 main.go
-build: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin freebsd openbsd
+windows-amd64:
+ @ go generate
+ @ GOOS=windows GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-windows-amd64 main.go
+
+build: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin freebsd openbsd windows-amd64
run:
@ go generate