Makefile 523 B

1234567891011121314151617181920212223242526
  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. sample.go\
  12. timer.go\
  13. include $(GOROOT)/src/Make.pkg
  14. all: uninstall clean install
  15. make -C cmd/metrics uninstall clean install
  16. uninstall:
  17. rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/$(TARG).a
  18. rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/github.com/rcrowley/go-$(TARG).a
  19. rm -rf $(GOROOT)/src/pkg/github.com/rcrowley/go-$(TARG)
  20. make -C cmd/metrics uninstall
  21. .PHONY: all uninstall