Makefile 391 B

12345678910111213
  1. .PHONY: build clean-examples
  2. build: html
  3. # this pattern rule lets you run "make build" (or any other target
  4. # in docs/Makefile) in this directory as though you were in docs/
  5. %:
  6. cd docs && make $@
  7. # wipe out all recorded examples
  8. clean-examples:
  9. -find docs -name _examples -type d | xargs rm -rf
  10. # also wipe the workdirs, otherwise a rebuild will lead to chaos
  11. -rm -r docs/_build/wdirs