You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
870 B

4 years ago
4 years ago
  1. BINARY = weed
  2. SOURCE_DIR = .
  3. all: debug_mount
  4. .PHONY : clean debug_mount
  5. clean:
  6. go clean $(SOURCE_DIR)
  7. rm -f $(BINARY)
  8. debug_shell:
  9. go build -gcflags="all=-N -l"
  10. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec weed -- shell
  11. debug_mount:
  12. go build -gcflags="all=-N -l"
  13. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec weed -- mount -dir=~/tmp/mm -cacheCapacityMB=0 -filer.path=/buckets
  14. debug_server:
  15. go build -gcflags="all=-N -l"
  16. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec weed -- server -dir=/Volumes/mobile_disk/99 -filer -volume.port=8343 -s3 -volume.max=0
  17. debug_volume:
  18. go build -gcflags="all=-N -l"
  19. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec weed -- volume -dir=/Volumes/mobile_disk/100 -port 8564 -max=30 -preStopSeconds=2