Makefile 885 B

123456789101112131415161718192021222324252627282930313233
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # This makefile generates the peers website.
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. TEMPLATES := lib/peers-template/
  7. all: output
  8. # ---------- ---------- ---------- ---------- ---------- ----------
  9. # NOTE: The remaining recipes follow:
  10. # ---------- ---------- ---------- ---------- ---------- ----------
  11. help:
  12. @echo "make Build website"
  13. @echo "make server Run a local test server"
  14. @echo "make clean Delete build files and output"
  15. lib:
  16. @test -d ${TEMPLATES} || git clone https://notabug.org/peers/peers-template.git ${TEMPLATES}
  17. output: lib
  18. @pelican --settings pelicanconf.py --theme-path ${TEMPLATES}themes/pelican content/
  19. server:
  20. @cd output && python3 -m http.server
  21. clean:
  22. @rm --recursive --force lib output
  23. .PHONY: all clean help output server