File: Makefile

package info (click to toggle)
golang-github-segmentio-encoding 0.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,472 kB
  • sloc: makefile: 286
file content (15 lines) | stat: -rw-r--r-- 312 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%.pb.go: %.proto
	protoc -I=$(dir $@) --go_out=$(dir $@) $<
	@mv $(dir $@)/github.com/segmentio/encoding/proto/fixtures/$@ $@
	@rm -rf $(dir $@)/github.com

protobuf.sources := \
    $(wildcard ./*.proto)

generate: protobuf
	go run ./generate

clean:
	rm -f *.pb.go

protobuf: $(protobuf.sources:.proto=.pb.go)