Browse Source

Split Makefile linux targets by architecture

Frédéric Guillot 7 months ago
parent
commit
1d335390c2
1 changed files with 13 additions and 4 deletions
  1. 13
    4
      Makefile

+ 13
- 4
Makefile View File

@@ -4,17 +4,26 @@ BUILD_DATE=`date +%FT%T%z`
4 4
 PKG_LIST := $(shell go list ./... | grep -v /vendor/)
5 5
 DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
6 6
 
7
-.PHONY: linux linux-arm darwin freebsd build run clean test lint integration-test clean-integration-test
7
+.PHONY: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin freebsd build run clean test lint integration-test clean-integration-test
8 8
 
9
-linux:
9
+linux-amd64:
10 10
 	@ go generate
11 11
 	@ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go
12 12
 
13
-linux-arm:
13
+linux-armv8:
14 14
 	@ go generate
15 15
 	@ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go
16
+
17
+linux-armv7:
18
+	@ go generate
16 19
 	@ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go
20
+
21
+linux-armv6:
22
+	@ go generate
17 23
 	@ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go
24
+
25
+linux-armv5:
26
+	@ go generate
18 27
 	@ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go
19 28
 
20 29
 darwin:
@@ -25,7 +34,7 @@ freebsd:
25 34
 	@ go generate
26 35
 	@ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
27 36
 
28
-build: linux linux-arm darwin freebsd
37
+build: linux-amd64 linux-armv8 linux-armv7 linux-armv6 linux-armv5 darwin freebsd
29 38
 
30 39
 run:
31 40
 	@ go generate

Loading…
Cancel
Save