summaryrefslogtreecommitdiff
path: root/Makefile
blob: a1ca7b93bf34746e4ff0b4325849588d565145fd (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. .PHONY: all update source clean
  15. .NOTPARALLEL: source