aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Clar Charr <them@lightdark.xyz>2019-01-01 16:22:45 -0500
committerGravatar fguillot <fred@miniflux.net>2019-01-02 20:31:48 -0800
commit31e2669c4db077b15fce496e92e20a05d7a979cb (patch)
treecfdaa602c66d7c7c98fd44a9251629abd035975d /Makefile
parent362fc5c2ff15cb73b3c8e053c6c97b3d2110f207 (diff)
Add more targets to Makefile
I put a comment above them saying that they're unsupported as they won't be tested on CI, etc., but they're still nice to have.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ad007a9..abcde5b 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,13 @@ export GO111MODULE=on
.PHONY: freebsd-amd64
.PHONY: openbsd-amd64
.PHONY: windows-amd64
+.PHONY: netbsd-amd64
+.PHONY: linux-x86
+.PHONY: darwin-x86
+.PHONY: freebsd-x86
+.PHONY: netbsd-x86
+.PHONY: openbsd-x86
+.PHONY: windows-x86
.PHONY: build run clean test lint integration-test clean-integration-test
generate:
@@ -55,6 +62,28 @@ windows-amd64: generate
build: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin-amd64 freebsd-amd64 openbsd-amd64 windows-amd64
+# NOTE: unsupported targets
+netbsd-amd64: generate
+ @ GOOS=netbsd GOARCH=amd64 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-netbsd-amd64 main.go
+
+linux-x86: generate
+ @ GOOS=linux GOARCH=386 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-linux-x86 main.go
+
+darwin-x86: generate
+ @ GOOS=darwin GOARCH=386 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-darwin-x86 main.go
+
+freebsd-x86: generate
+ @ GOOS=freebsd GOARCH=386 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-freebsd-x86 main.go
+
+netbsd-x86: generate
+ @ GOOS=netbsd GOARCH=386 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-netbsd-x86 main.go
+
+openbsd-x86: generate
+ @ GOOS=openbsd GOARCH=386 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-freebsd-x86 main.go
+
+windows-x86: generate
+ @ GOOS=windows GOARCH=386 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-windows-x86 main.go
+
run: generate
@ go run -mod=vendor main.go -debug