Makefile 841 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # This makefile generates the peers website.
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. UserAt=$(if $(u),$(u)@,)
  7. target: prerequisites
  8. prerequisites: help
  9. # ---------- ---------- ---------- ---------- ---------- ----------
  10. # NOTE: The remaining recipes follow:
  11. # ---------- ---------- ---------- ---------- ---------- ----------
  12. help:
  13. @echo See the Makefile for more info.
  14. deps:
  15. @if [ ! -d lib ]; then\
  16. mkdir lib;\
  17. fi
  18. @if [ ! -d lib/peers-template ]; then\
  19. cd lib && git clone https://$(UserAt)notabug.org/peers/peers-template.git;\
  20. fi
  21. build:
  22. pelican -s pelicanconf.py -t lib/peers-template/themes/pelican content/
  23. clean:
  24. rm -rf output
  25. server:
  26. cd output && python3 -m http.server
  27. .PHONY: build clean server deps help