aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-12-02 13:35:13 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-12-02 13:35:13 -0800
commitb51e7ea448bc40b4737bb3747dee666ea25dbd2a (patch)
treec94413d663e52effeafa842ba62ec2c0b67de6cc /Makefile
parent154b6a3bf7b7bb8b7254347e043922c9d384815d (diff)
Add Makefile target for current OS and architecture
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 42deeef..24a0c50 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ PKG_LIST := $(shell go list ./... | grep -v /vendor/)
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
.PHONY: generate
+.PHONY: miniflux
.PHONY: linux-amd64
.PHONY: linux-armv8
.PHONY: linux-armv7
@@ -20,6 +21,9 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
generate:
@ go generate
+miniflux: generate
+ @ go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP) main.go
+
linux-amd64: generate
@ GOOS=linux GOARCH=amd64 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-linux-amd64 main.go
@@ -53,7 +57,7 @@ run: generate
@ go run main.go -debug
clean:
- @ rm -f $(APP)-*
+ @ rm -f $(APP)-* $(APP)
test:
go test -cover -race -count=1 ./...