Makefile 533 B

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