Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: clean
  26. clean:
  27. @echo "stub"
  28. .PHONY: flag-terms
  29. flag-terms:
  30. @echo "Flag terms to avoid:"
  31. @grep -Iirn 'dungeons \(&\|and\) dragons\|d&d\|\bsins\b\|starfinder' \
  32. ./ \
  33. --exclude=Makefile \
  34. --exclude-dir=archive \
  35. --exclude-dir=.git \
  36. --color=always \
  37. || echo "pass"