web and wiki

Makefile 536B

123456789101112131415161718192021222324252627
  1. # heads' web
  2. # See LICENSE file for copyright and license details.
  3. include config.mk
  4. all: $(PAGES)
  5. @./atom.sh
  6. @./finance.py
  7. %: %.md
  8. @echo " * generating $@"
  9. @cat header.html nav.html | \
  10. sed "s/{{{DEFAULT_TITLE}}}/$(shell sed 1q $^) | heads/" > $@
  11. @$(MARKDOWN) $^ >> $@
  12. @cat footer.html >> $@
  13. clean:
  14. rm -f $(PAGES) atom.xml finance.html
  15. push: all
  16. @echo " * pushing to $(WEBHOST):$(WEBROOT)"
  17. @rsync -P -e "ssh" -avul --delete --stats \
  18. --exclude-from "rsync-exclude" \
  19. . $(WEBHOST):$(WEBROOT)
  20. .PHONY: all clean push