mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
update makefile.common and run make all be default. (#529)
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
parent
bc3b0bd429
commit
8913617a9e
|
@ -20,5 +20,4 @@ install:
|
||||||
- make deps
|
- make deps
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# `staticcheck` target is omitted due to linting errors
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then make test; else make all; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then make test; else make; fi
|
|
||||||
|
|
|
@ -87,14 +87,14 @@ ifeq ($(GOHOSTARCH),amd64)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all: precheck style staticcheck unused build test
|
|
||||||
|
|
||||||
# This rule is used to forward a target like "build" to "common-build". This
|
# This rule is used to forward a target like "build" to "common-build". This
|
||||||
# allows a new "build" target to be defined in a Makefile which includes this
|
# allows a new "build" target to be defined in a Makefile which includes this
|
||||||
# one and override "common-build" without override warnings.
|
# one and override "common-build" without override warnings.
|
||||||
%: common-% ;
|
%: common-% ;
|
||||||
|
|
||||||
|
.PHONY: common-all
|
||||||
|
common-all: precheck style check_license staticcheck unused build test
|
||||||
|
|
||||||
.PHONY: common-style
|
.PHONY: common-style
|
||||||
common-style:
|
common-style:
|
||||||
@echo ">> checking code style"
|
@echo ">> checking code style"
|
||||||
|
|
Loading…
Reference in a new issue