GNUmakefile 725 B

1234567891011121314151617181920212223242526
  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:
  8. tools/extract.py --source-url ${SOURCE_URL}
  9. cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
  10. fetch:
  11. rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .
  12. clean:
  13. rm -rf wiki pelican
  14. distclean: clean
  15. rm -rf trac.db attachments
  16. webfsd:
  17. webfsd -r pelican/website -4 -L - -F -f index.html
  18. .PHONY: all clean fetch distclean webfsd