File: Makefile

package info (click to toggle)
golang-github-prometheus-client-model 0.0.2%2Bgit20171117.99fa1f4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports, buster-backports-sloppy, stretch-backports
  • size: 656 kB
  • sloc: xml: 122; ruby: 97; makefile: 48; python: 21
file content (17 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (4)
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