mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 18:28:08 +08:00
make: do not run coverage file unless clean of coverage targets are run
This reduces flat make time by half License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
5472dac317
commit
730896c006
10
Rules.mk
10
Rules.mk
@ -24,9 +24,13 @@ include $(dir)/Rules.mk
|
||||
dir := cmd/ipfs
|
||||
include $(dir)/Rules.mk
|
||||
|
||||
# has to be after cmd/ipfs due to PATH
|
||||
dir := coverage
|
||||
include $(dir)/Rules.mk
|
||||
# include this file only if coverage target is executed
|
||||
# it is quite expensive
|
||||
ifneq ($(filter coverage% clean,$(MAKECMDGOALS)),)
|
||||
# has to be after cmd/ipfs due to PATH
|
||||
dir := coverage
|
||||
include $(dir)/Rules.mk
|
||||
endif
|
||||
|
||||
dir := namesys/pb
|
||||
include $(dir)/Rules.mk
|
||||
|
||||
@ -32,7 +32,7 @@ $(d)/ipfs: $(d)/main
|
||||
|
||||
CLEAN += $(d)/ipfs
|
||||
|
||||
ifneq ($(filter coverage,$(MAKECMDGOALS)),)
|
||||
ifneq ($(filter coverage%,$(MAKECMDGOALS)),)
|
||||
# this is quite hacky but it is best way I could fiture out
|
||||
DEPS_test/sharness += cmd/ipfs/ipfs-test-cover $(d)/coverage_deps $(d)/ipfs
|
||||
endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user