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.

19 lines
487 B

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_mount:
  9. go build -gcflags="all=-N -l"
  10. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec weed -- mount -dir=~/tmp/mm
  11. debug_server:
  12. go build -gcflags="all=-N -l"
  13. 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