From: Joey Hess Date: Tue, 17 Feb 2009 17:50:42 +0000 (-0500) Subject: use -Bf in all examples X-Git-Tag: 7.2.0~1^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c75b574263d91c9c2cff59229550e893dec4fbc8;p=debhelper.git use -Bf in all examples (cherry picked from commit 8cdac50db64b2f2d6aacdcfc4683fdcf79cee629) --- diff --git a/dh b/dh index f67aeb3..ea541b1 100755 --- a/dh +++ b/dh @@ -140,14 +140,14 @@ anything: This is a very simple rules file, for packages where the default sequences of commands work with no additional options. - #!/usr/bin/make -f + #!/usr/bin/make -Bf %: dh $@ Often you'll want to pass an option to a specific debhelper command. The easy way to do with is by adding an override target for that command. - #!/usr/bin/make -f + #!/usr/bin/make -Bf %: dh $@ @@ -161,7 +161,7 @@ Sometimes the automated dh_auto_configure and dh_auto_build can't guess what to do for a strange package. Here's how to avoid running either and instead run your own commands. - #!/usr/bin/make -f + #!/usr/bin/make -Bf %: dh $@ @@ -174,7 +174,7 @@ and instead run your own commands. Another common case is wanting to do something manually before or after a particular debhelper command is run. - #!/usr/bin/make -f + #!/usr/bin/make -Bf %: dh $@ @@ -182,19 +182,10 @@ after a particular debhelper command is run. dh_fixperms chmod 4755 debian/foo/usr/bin/foo -If the package's source tree might get files with names -like build or clean in it, the rules file would not -run targets with the same names. This issue can be worked -around by passing -B to make. - - #!/usr/bin/make -Bf - %: - dh $@ - If your package is a python package, dh will use dh_pysupport by default. This is how to use dh_pycentral instead. - #!/usr/bin/make -f + #!/usr/bin/make -Bf %: dh --with python-central