summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9a3d6e39339a0f6334b7fbbe108a8908714529c6 (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 Makefile
  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