[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Writing get-orig-source targets to conform with policy



On Sun, Feb 17, 2008 at 06:19:14PM +0900, Emmet Hikory wrote:
> Bas Wijnen wrote:
> > The code you wrote here works for executing get-orig-source.  However,
> > it also runs uscan when trying to build any other target.
> 
>     It doesn't run uscan for me when I call debian/rules clean.  My
> understanding of makefile variable definitions is that the use of :=
> determines the variable at parse time, and = determines the variable
> at runtime.

Ehm, yes, that's right.  I don't know why I wrote that, I did actually
do the test myself before sending the e-mail (with another Makefile, but
still testing for when shells were executed).

> By setting MEDIATOMB_VERSION with =, it will run uscan when the value
> is accessed.  By setting CURRENT_VERSION with ?= it sets the value
> only once, at time of first use.  Arguably, one might be able to set
> MEDIATOMB_VERSION with ?= to achieve the same effect, but I tend to be
> cautious.

I'm not sure what different versions of make do with this.  However,
for Debian packages we can assume a Debian system, and therefore GNU
make.

Thanks,
Bas

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://pcbcn10.phys.rug.nl/e-mail.html

Attachment: signature.asc
Description: Digital signature


Reply to: