letsencrypt-renew for multiple letsencrypt certificates within one uberspace

Makefile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Makefile
  2. #
  3. # Copyright 2017 Jonathan Golder <jonathan@golderweb.de>
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  18. # MA 02110-1301, USA.
  19. #
  20. #
  21. PROJECT = letsencrypt-renew
  22. #include .config
  23. -include .config
  24. # Tools
  25. INSTALL ?= /usr/bin/install
  26. SED ?= /bin/sed
  27. RM ?= /bin/rm
  28. CHMOD ?= /bin/chmod
  29. # Dirs & Files
  30. PREFIX ?= $(HOME)/.local
  31. BIN ?= $(PREFIX)/bin
  32. SHARE ?= $(PREFIX)/share/$(PROJECT)
  33. VAR ?= $(PREFIX)/var/$(PROJECT)
  34. ETC ?= $(PREFIX)/etc/$(PROJECT)
  35. install:
  36. $(INSTALL) -d $(BIN)
  37. $(INSTALL) letsencrypt-renew.sh $(BIN)/letsencrypt-renew
  38. uninstall:
  39. $(RM) $(BIN)/letsencrypt-renew
  40. purge: uninstall