Makefile 448 B

1234567891011121314151617
  1. .POSIX:
  2. DIST = /usr/sbin
  3. CONF = /etc/wireguard
  4. install:
  5. cp -f create_new_wireguard_account $(DIST)
  6. chmod 100 $(DIST)/create_new_wireguard_account
  7. if [ ! -f $(CONF)/wg-create-account.ini ]; \
  8. then cp wg-create-account.ini.sample $(CONF)/wg-create-account.ini && \
  9. echo "Conf file sample created at $(CONF)/wg-create-account.ini; please fill it up."; \
  10. fi;
  11. uninstall:
  12. rm -f $(DIST)/create_new_wireguard_account
  13. .PHONY: install uninstall