Makefile 511 B

12345678910111213141516171819202122232425
  1. include $(GOROOT)/src/Make.inc
  2. TARG=metrics
  3. GOFILES=\
  4. counter.go\
  5. gauge.go\
  6. healthcheck.go\
  7. histogram.go\
  8. meter.go\
  9. metrics.go\
  10. registry.go\
  11. timer.go\
  12. include $(GOROOT)/src/Make.pkg
  13. all: uninstall clean install
  14. make -C cmd/metrics uninstall clean install
  15. uninstall:
  16. rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/$(TARG).a
  17. rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/github.com/rcrowley/go-$(TARG).a
  18. rm -rf $(GOROOT)/src/pkg/github.com/rcrowley/go-$(TARG)
  19. make -C cmd/metrics uninstall
  20. .PHONY: all uninstall