Makefile 633 B

123456789101112131415161718
  1. install: monkey-lnx64 docs/init.monkey $(wildcard docs/*.md)
  2. scp monkey-lnx64 lavana.sour.is:monkey-lnx64
  3. ssh lavana.sour.is -- sudo mv monkey-lnx64 /home/cli/usr/local/bin/monkey
  4. ssh lavana.sour.is -- sudo chmod +rx /home/cli/usr/local/bin/monkey
  5. scp docs/init.monkey $(wildcard docs/*.md) lavana.sour.is:
  6. ssh lavana.sour.is -- sudo mv init.monkey '*.md' /home/cli/home/cli
  7. ssh lavana.sour.is -- sudo chmod +r /home/cli/home/cli/init.monkey '/home/cli/home/cli/*.md'
  8. monkey-lnx64:
  9. export GOOS=linux GOARCH=amd64; \
  10. go build -v -o monkey-lnx64 ./cmd/monkey
  11. clean:
  12. rm -f monkey-lnx64
  13. run:
  14. cd docs && go run ../cmd/monkey