From ad27f483dde8656a517493f1e2640bbbdda25754 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Sun, 10 Sep 2017 14:30:55 -0700 Subject: [PATCH 1/2] allow a binary name to be passed to make build, rather than only allowing build to build all binaries from .promu.yml --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e5f3e779..33366174 100644 --- a/Makefile +++ b/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 From 1eef24cae2b26151a469c9b7547e4dae8bac833c Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Tue, 12 Sep 2017 14:18:06 -0700 Subject: [PATCH 2/2] add readme note about optional build binaries --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 100ec3f7..842e4f64 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,11 @@ $ make build $ ./alertmanager -config.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/).