]> git.donarmstrong.com Git - debhelper.git/commitdiff
add --builddirectory example
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 28 Jan 2010 01:01:27 +0000 (20:01 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 28 Jan 2010 01:01:27 +0000 (20:01 -0500)
dh

diff --git a/dh b/dh
index 61ea0aa53369821a35f74eb2ea0312aca21028e7..cf0baa563c925e07f391b7177dd98f7e4435e83b 100755 (executable)
--- a/dh
+++ b/dh
@@ -200,6 +200,13 @@ subdirectory.
        %:
                dh $@ --sourcedirectory=src
 
+And here is an example of how to tell the dh_auto_* commands to build
+in a subdirectory, which will be removed on clean.
+
+       #!/usr/bin/make -f
+       %:
+               dh $@ --builddirectory=build
+
 Finally, here is a way to prevent dh from running several commands
 that you don't want it to run, by defining empty override targets for each
 command.