GNUmakefile 902 B

123456789101112131415161718192021222324252627282930
  1. HERE := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
  2. # Sample settings, tweak for particular jobs on make command line or
  3. # via environment variables.
  4. SOURCE_URL := https://git.cryptech.is/
  5. SOURCE_TRAC_DB := bikeshed.cryptech.is:/home/trac/db/trac.db
  6. SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments
  7. all: pelican/content/trac-to-pelican-home.md
  8. tools/extract.py --source-url ${SOURCE_URL}
  9. cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
  10. pelican/content/trac-to-pelican-home.md: tools/trac-to-pelican-home.md
  11. mkdir -p $(dir $@)
  12. (date '+Date: %Y-%m-%d %H:%M'; cat $<) > $@
  13. fetch:
  14. rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .
  15. clean:
  16. rm -rf wiki pelican
  17. distclean: clean
  18. rm -rf trac.db attachments
  19. webfsd:
  20. webfsd -r pelican/website -4 -L - -F -f index.html
  21. .PHONY: all clean fetch distclean webfsd