From 8cdac50db64b2f2d6aacdcfc4683fdcf79cee629 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 17 Feb 2009 12:50:42 -0500 Subject: use -Bf in all examples --- dh | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'dh') diff --git a/dh b/dh index f030fa51..b4690ef7 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 -- cgit v1.2.3