mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
These are the vendor files needed for Prometheus support. I have not been able to figure out how to do this properly with gopkg.
18 lines
411 B
Makefile
18 lines
411 B
Makefile
VENDOR_BUNDLE = vendor/bundle
|
|
|
|
build: $(VENDOR_BUNDLE)/.bundled
|
|
BEEFCAKE_NAMESPACE=Prometheus::Client protoc --beefcake_out lib/prometheus/client/model -I .. ../metrics.proto
|
|
|
|
$(VENDOR_BUNDLE):
|
|
mkdir -p $@
|
|
|
|
$(VENDOR_BUNDLE)/.bundled: $(VENDOR_BUNDLE) Gemfile
|
|
bundle install --quiet --path $<
|
|
@touch $@
|
|
|
|
clean:
|
|
-rm -f lib/prometheus/client/model/metrics.pb.rb
|
|
-rm -rf $(VENDOR_BUNDLE)
|
|
|
|
.PHONY: build clean
|