Makefile 301 B

12345678910111213141516171819202122232425
  1. GOPATH=${CURDIR}/deps:${CURDIR}
  2. all: deps
  3. go build -o DIST/builder buildme/cmd/builder
  4. dist:
  5. tar -c DIST |gzip >dist.tar.gz
  6. deps:
  7. go get -v buildme/cmd/builder
  8. clean:
  9. rm -f dist.tar.gz
  10. rm -rf DIST
  11. distclean: clean
  12. rm -rf deps
  13. rm -rf bin
  14. rm -rf pkg
  15. .PHONY: all deps clean distclean