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