| 1234567891011121314151617181920212223242526272829303132333435363738 | GOPATH ?= $(shell go env GOPATH)ifneq ($(OS),Windows_NT)EXE =elseEXE = .exeendifPKG = $(shell go env GOOS)_$(shell go env GOARCH)TAGS ?=all: ${GOPATH}/bin/hercules${EXE}test: all	go test gopkg.in/src-d/hercules.v7${GOPATH}/bin/protoc-gen-gogo${EXE}:	go get -v github.com/gogo/protobuf/protoc-gen-gogoifneq ($(OS),Windows_NT)internal/pb/pb.pb.go: internal/pb/pb.proto ${GOPATH}/bin/protoc-gen-gogo	PATH=${PATH}:${GOPATH}/bin protoc --gogo_out=internal/pb --proto_path=internal/pb internal/pb/pb.protoelseinternal/pb/pb.pb.go: internal/pb/pb.proto ${GOPATH}/bin/protoc-gen-gogo.exe	export PATH="${PATH};${GOPATH}\bin" && \	protoc --gogo_out=internal/pb --proto_path=internal/pb internal/pb/pb.protoendifinternal/pb/pb_pb2.py: internal/pb/pb.proto	protoc --python_out internal/pb --proto_path=internal/pb internal/pb/pb.protocmd/hercules/plugin_template_source.go: cmd/hercules/plugin.template	cd cmd/hercules && go generatevendor:	dep ensure -v${GOPATH}/bin/hercules${EXE}: vendor *.go */*.go */*/*.go */*/*/*.go internal/pb/pb.pb.go internal/pb/pb_pb2.py cmd/hercules/plugin_template_source.go	go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v7.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v7/cmd/hercules
 |