Merge pull request #990 from cstyan/support-optional-binary
allow a binary name to be passed to make build
This commit is contained in:
commit
1c53b344a9
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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/).
|
||||
|
|
Loading…
Reference in New Issue