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