Skip to content

Commit c721801

Browse files
committed
Avoid rule overriding warning
1 parent 1ae2090 commit c721801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ travis_login:
173173
.PHONY: cover
174174
cover: profile.out
175175

176-
$(COVERPROFILE_LIST): $(SOURCES)
176+
$(COVERPROFILE_LIST):: $(SOURCES)
177177
rm -f $@
178178
$(GOCOVER) -ldflags $(LDFLAGS) -coverpkg=./pkg/... -coverprofile=$@ ./$(dir $@)
179179

180-
profile.out: $(COVERPROFILE_LIST)
180+
profile.out:: $(COVERPROFILE_LIST)
181181
rm -f $@
182182
echo "mode: set" > $@
183183
cat ./pkg/*/profile.out | grep -v mode: | sort -r | awk '{if($$1 != last) {print $$0;last=$$1}}' >> $@

0 commit comments

Comments
 (0)