summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/prometheus/client_model/ruby/Makefile
blob: 09d544bf0b3ef867e5d31e6252b236d16c9e2ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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