Makefile 354 B

12345678910111213141516
  1. GOPATH=$(CURDIR)/deps:$(CURDIR)
  2. DIST=./DIST
  3. all: deps
  4. @GOPATH=$(GOPATH) go generate gdrivemount/cmd/gdrivemount
  5. GOPATH=$(GOPATH) go build -o DIST/gdrivemount gdrivemount/cmd/gdrivemount
  6. deps:
  7. GOPATH=$(GOPATH) go get -v ./src/gdrivemount/cmd/gdrivemount
  8. test: # non golang test
  9. cd test; ../DIST/gdrivemount mount
  10. clean:
  11. rm -rf DIST deps pkg bin