summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6f4f647760675fcb14862a3ca46e7903d7f4c38f (plain)
  1. markdown-snippets := topbar.mdwn footer.mdwn
  2. markdown := $(filter-out $(markdown-snippets),$(wildcard *.mdwn))
  3. hypertext = $(subst index/index,index,$(markdown:%.mdwn=%/index.html))
  4. all: $(hypertext)
  5. update: source all
  6. source: .git
  7. git pull
  8. %.html %/index.html: %.mdwn
  9. $(if $(filter-out ./,$(dir $@)),mkdir -p $(dir $@))
  10. pandoc -f markdown -t html -o $@ $<
  11. clean:
  12. find -type f -name '*.html' -delete
  13. find -type d -empty -delete
  14. MAKEFLAGS += --jobs
  15. .NOTPARALLEL: source
  16. .PHONY: all update source clean