This repository has been archived on 2022-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
activitypub/Makefile

22 lines
407 B
Makefile
Raw Normal View History

2021-11-09 15:26:02 +00:00
GO ?= go
TEST := $(GO) test
TEST_FLAGS ?= -v
TEST_TARGET ?= .
2019-06-11 11:49:58 +00:00
GO111MODULE = on
PROJECT_NAME := $(shell basename $(PWD))
2018-04-11 19:03:41 +00:00
2022-03-19 19:28:52 +00:00
.PHONY: test coverage clean download
2019-06-11 12:09:10 +00:00
2022-03-19 19:28:52 +00:00
download:
$(GO) mod download all
test: download
2018-04-11 19:03:41 +00:00
$(TEST) $(TEST_FLAGS) $(TEST_TARGET)
2019-06-11 11:49:58 +00:00
coverage: TEST_TARGET := .
coverage: TEST_FLAGS += -covermode=count -coverprofile $(PROJECT_NAME).coverprofile
coverage: test
2018-04-11 19:03:41 +00:00
clean:
$(RM) -v *.coverprofile