aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar MoritzFago <MoritzFago@users.noreply.github.com>2018-03-19 04:44:13 +0100
committerGravatar Frédéric Guillot <fred@kanboard.net>2018-03-18 20:44:13 -0700
commitc8118497715a122c7ed120758f54091c0094ce18 (patch)
tree3d7c926b987af37fc85ef3313f524c5639b47e26 /Makefile
parent6ea4da3bce2cc9321926be74d0cbc6ad0f01f363 (diff)
Add FreeBSD build target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 744e092..6253b17 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ BUILD_DATE=`date +%FT%T%z`
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
-.PHONY: linux linux-arm darwin build run clean test lint integration-test clean-integration-test
+.PHONY: linux linux-arm darwin freebsd build run clean test lint integration-test clean-integration-test
linux:
@ go generate
@@ -21,7 +21,11 @@ darwin:
@ go generate
@ GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go
-build: linux linux-arm darwin
+freebsd:
+ @ go generate
+ @ GOOS=freebsd GOARCH=amd64 go build -ldflags="-X 'githug.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
+
+build: linux linux-arm darwin freebsd
run:
@ go generate