Merge pull request #188 from dcrosta/makefile-hack
authorKenneth Reitz <me@kennethreitz.com>
Sat, 28 Jul 2012 20:57:26 +0000 (13:57 -0700)
committerKenneth Reitz <me@kennethreitz.com>
Sat, 28 Jul 2012 20:57:26 +0000 (13:57 -0700)
make targets in docs/Makefile available at top level

Makefile

index 4c2b0cf..e702e78 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,7 @@
-build:
-       cd docs && make html
\ No newline at end of file
+.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 $@