1234567891011121314151617181920212223242526272829 |
- ifneq (oneshell, $(findstring oneshell, $(.FEATURES)))
- $(error GNU make 3.82 or later is required)
- endif
- all: dependencies ${GOPATH}/bin/hercules ${GOPATH}/bin/hercules-generate-plugin
- test: all
- go test gopkg.in/src-d/hercules.v3
- dependencies: ${GOPATH}/src/gopkg.in/bblfsh/client-go.v2 ${GOPATH}/src/gopkg.in/src-d/hercules.v3
- cd ${GOPATH}/src/gopkg.in/src-d/hercules.v3/cmd/hercules-generate-plugin && go generate
- ${GOPATH}/src/gopkg.in/src-d/hercules.v3:
- go get -d gopkg.in/src-d/hercules.v3/...
- .ONESHELL:
- ${GOPATH}/src/gopkg.in/bblfsh/client-go.v2:
- go get -v gopkg.in/bblfsh/client-go.v2/... || true
- cd $$GOPATH/src/gopkg.in/bblfsh/client-go.v2
- make dependencies
- .ONESHELL:
- ${GOPATH}/bin/hercules: *.go cmd/hercules/*.go rbtree/*.go yaml/*.go toposort/*.go pb/*.go
- cd ${GOPATH}/src/gopkg.in/src-d/hercules.v3
- go get -ldflags "-X gopkg.in/src-d/hercules.v3.GIT_HASH=$$(git rev-parse HEAD)" gopkg.in/src-d/hercules.v3/cmd/hercules
- ${GOPATH}/bin/hercules-generate-plugin: cmd/hercules-generate-plugin/*.go ${GOPATH}/bin/hercules
- go get -ldflags "-X gopkg.in/src-d/hercules.v3.GIT_HASH=$$(git rev-parse HEAD)" gopkg.in/src-d/hercules.v3/cmd/hercules-generate-plugin
|