Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. RELEASEURL_tmux_conf:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/.tmux.conf"
  2. RELEASEURL_atr:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/atr"
  3. RELEASEURL_iptables_http_clear:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/iptables-http-clear"
  4. RELEASEURL_iptables_http_cloudflare:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/iptables-http-cloudflare"
  5. RELEASEURL_iptables_write:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/iptables-write"
  6. RELEASEURL_ping_disable:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/ping-disable"
  7. RELEASEURL_ping_enable:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/ping-enable"
  8. BINDIR:=/usr/local/bin
  9. default: info
  10. install:
  11. @echo "Downloading..."
  12. @wget -q $(RELEASEURL_tmux_conf) -O ~/.tmux.conf > /dev/null
  13. @chmod 644 ~/.tmux.conf
  14. @echo "[OK] ~/.tmux.conf"
  15. @wget -q $(RELEASEURL_atr) -O $(BINDIR)/atr > /dev/null
  16. @chmod 755 $(BINDIR)/atr
  17. @echo "[OK] $(BINDIR)/atr"
  18. @wget -q $(RELEASEURL_iptables_http_clear) -O $(BINDIR)/iptables-http-clear > /dev/null
  19. @chmod 755 $(BINDIR)/iptables-http-clear
  20. @echo "[OK] $(BINDIR)/iptables-http-clear"
  21. @wget -q $(RELEASEURL_iptables_http_cloudflare) -O $(BINDIR)/iptables-http-cloudflare > /dev/null
  22. @chmod 755 $(BINDIR)/iptables-http-cloudflare
  23. @echo "[OK] $(BINDIR)/iptables-http-cloudflare"
  24. @wget -q $(RELEASEURL_iptables_write) -O $(BINDIR)/iptables-write > /dev/null
  25. @chmod 755 $(BINDIR)/iptables-write
  26. @echo "[OK] $(BINDIR)/iptables-write"
  27. @wget -q $(RELEASEURL_ping_disable) -O $(BINDIR)/ping-disable > /dev/null
  28. @chmod 755 $(BINDIR)/ping-disable
  29. @echo "[OK] $(BINDIR)/ping-disable"
  30. @wget -q $(RELEASEURL_ping_enable) -O $(BINDIR)/ping-enable > /dev/null
  31. @chmod 755 $(BINDIR)/ping-enable
  32. @echo "[OK] $(BINDIR)/ping-enable"
  33. @echo "All installed successfully"
  34. info:
  35. @echo "You can run 'make install'"