Merge pull request #990 from cstyan/support-optional-binary

allow a binary name to be passed to make build
This commit is contained in:
Fabian Reinartz 2017-09-13 09:48:01 +02:00 committed by GitHub
commit 1c53b344a9
2 changed files with 6 additions and 1 deletions

View File

@ -47,7 +47,7 @@ vet:
# Will only build the back-end
build: promu
@echo ">> building binaries"
@$(PROMU) build --prefix $(PREFIX)
@$(PROMU) build --prefix $(PREFIX) $(BINARIES)
# Will build both the front-end as well as the back-end
build-all: assets build

View File

@ -45,6 +45,11 @@ $ make build
$ ./alertmanager -config.file=<your_file>
```
You can also build just one of the binaries in this repo by passing a name to the build function:
```
$ make build BINARIES=amtool
```
## Example
This is an example configuration that should cover most relevant aspects of the new YAML configuration format. The full documentation of the configuration can be found [here](https://prometheus.io/docs/alerting/configuration/).