Permalink
Browse files

make targets in docs/Makefile available at top level

  • Loading branch information...
1 parent 707d5c0 commit 291c0ff37ace2045a2b3b9d8eda9e05a8e157b0a @dcrosta dcrosta committed Jul 28, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 Makefile
View
@@ -1,2 +1,7 @@
-build:
- cd docs && make html
+.PHONY: build
+build: html
+
+# this pattern rule lets you run "make build" (or any other target
+# in docs/Makefile) in this directory as though you were in docs/
+%:
+ cd docs && make $@

0 comments on commit 291c0ff

Please sign in to comment.