🔨 Fix make open-report for Darwin
This commit is contained in:
parent
85671a076c
commit
fba5551bb3
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
|
@ -3,6 +3,12 @@ OUT=my-log
|
|||
GOBIN=$(shell go env GOBIN)
|
||||
COVEROUT=cover.out
|
||||
COVERHTML=cover.html
|
||||
OPEN=xdg-open
|
||||
OS=$(shell uname -s)
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
OPEN=open
|
||||
endif
|
||||
|
||||
.PHONY: help
|
||||
help: ## Show help for documented recipes
|
||||
|
|
@ -35,7 +41,7 @@ report: $(COVERHTML) ## Generate a coverage report
|
|||
|
||||
.PHONY: open-report
|
||||
open-report: $(COVERHTML) ## Open the coverage report in the default browser
|
||||
xdg-open $(COVERHTML)
|
||||
$(OPEN) $<
|
||||
|
||||
.PHONY: build
|
||||
build: $(OUT) ## Builds the application
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue