tags 581814 pending
thanks 

On Sun, May 16, 2010 at 03:24:27AM -0500, Jonathan Nieder wrote:
> Package: maint-guide
> Version: 1.2.18-svn
> Severity: wishlist
...
> However, I fear it makes dh look a little more like black magic
> than it really is.  All my debian/rules files include something
> like this:
> 
>  #!/usr/bin/make -f
>  
>  build clean install binary-arch binary-indep binary:
>       +dh --parallel $(opt_no_act) $@
>  
>  opt_no_act =
>  ifneq (,$(findstring n,$(MAKEFLAGS)))
>      opt_no_act = --no-act
>  endif
> 
> This make it easy to use "debian/rules -n install", say, to learn what
> files are run as part of the install target.

interesting...  But why not remove such complication.

$ debian/rules what_ever_target --no-act

This does what you want, is not this?  Slightly more typing but cleaner
debian/rules file.

> Maybe the newmaint guide could advertise the --no-act option so others
> can help themselves in this way.  I am thinking of something like
> this:
> 
> | Lines 12 and 13 are where all the work is done. The percent sign
> | matches all targets; they then call a single program, dh, passing
> | the target’s name as an argument.  The dh command is a wrapper
> | script which runs an appropriate sequences of dh_* programs
> | depending on its argument.  These sequences can be listed with the
> | --no-act option.
> | 
> | For example, "debian/rules clean" runs "dh clean"; the list of
> | commands that runs can be listed as follows:
> | 
> |      $ dh --no-act clean
> |      dh_testdir
> |      dh_auto_clean
> |      dh_clean
> [...]
> |
> | "debian/rules build" runs "dh build", which in turn runs the
> | following:
> |
> |      dh_testdir
> [...]
> 
> What do you think?

This document is for first time packaging.  I do not want to stop people
to dwell into details.  

I will put a small reminder in the footnote for "--no-act".  This should
address your issue,

Osamu




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to