Skip to content
Snippets Groups Projects
Commit b51e7ea4 authored by Frédéric Guillot's avatar Frédéric Guillot
Browse files

Add Makefile target for current OS and architecture

parent 154b6a3b
No related branches found
No related tags found
No related merge requests found
miniflux-* miniflux-*
miniflux
\ No newline at end of file
...@@ -6,6 +6,7 @@ PKG_LIST := $(shell go list ./... | grep -v /vendor/) ...@@ -6,6 +6,7 @@ PKG_LIST := $(shell go list ./... | grep -v /vendor/)
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
.PHONY: generate .PHONY: generate
.PHONY: miniflux
.PHONY: linux-amd64 .PHONY: linux-amd64
.PHONY: linux-armv8 .PHONY: linux-armv8
.PHONY: linux-armv7 .PHONY: linux-armv7
...@@ -20,6 +21,9 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable ...@@ -20,6 +21,9 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
generate: generate:
@ go generate @ go generate
miniflux: generate
@ go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP) main.go
linux-amd64: generate linux-amd64: generate
@ GOOS=linux GOARCH=amd64 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-linux-amd64 main.go @ GOOS=linux GOARCH=amd64 go build -mod=vendor -ldflags=$(LD_FLAGS) -o $(APP)-linux-amd64 main.go
...@@ -53,7 +57,7 @@ run: generate ...@@ -53,7 +57,7 @@ run: generate
@ go run main.go -debug @ go run main.go -debug
clean: clean:
@ rm -f $(APP)-* @ rm -f $(APP)-* $(APP)
test: test:
go test -cover -race -count=1 ./... go test -cover -race -count=1 ./...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment