Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # fenrispunk
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. target: help
  7. .PHONY: help
  8. help:
  9. @echo "Usage: make [PHONY]"
  10. @sed -n -e '/sed/! s/\.PHONY: //p' Makefile
  11. .PHONY: init
  12. init:
  13. @git clone https://notabug.org/vaeringjar/fenrispunk-assets.git lib/fenrispunk-assets \
  14. && rsync -av --delete lib/fenrispunk-assets/artwork/rob_michaud/ \
  15. site/static/artwork/rob_michaud/ \
  16. || echo "failed to get fenrispunk-assets"
  17. @touch headlines.org
  18. .PHONY: build-home
  19. build-home:
  20. @./build-home-page || echo "Suggestion: make init"
  21. .PHONY: build
  22. build: build-home
  23. .PHONY: rebuild
  24. rebuild: clean build
  25. .PHONY: ssg
  26. ssg:
  27. @cd ../ && make rebuild n=FenrisPunk
  28. .PHONY: clean
  29. clean:
  30. @echo "stub"
  31. .PHONY: flag-terms
  32. flag-terms:
  33. @echo "Flag terms to avoid:"
  34. @grep -Iirn 'dungeons \(&\|and\) dragons\|d&d\|\bsins\b\|starfinder' \
  35. ./ \
  36. --exclude=Makefile \
  37. --exclude-dir=archive \
  38. --exclude-dir=.git \
  39. --color=always \
  40. || echo "pass"