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

Bug#683184: RFS: suckless-tools/39-1 [ITA]



On 15:49 Mon 20 Aug     , Jakub Wilk wrote:
> * Vasudev Kamath <kamathvasudev@gmail.com>, 2012-08-18, 22:07:
> >>get-orig-source: TMPDIR :=$(shell (mktemp --tmpdir -d suckless-tools.XXXX))
> >>
> >>It looks like a nice hack, but... it will create a temporary
> >>directory every time debian/rules is run (not only for the
> >>get-orig-source target).
> >>
> >
> >Since it was with get-orig-source: target I thought like all
> >Makefiles it should be called only when we do debian/rules
> >get-orig-source but looks like it creates directory even when I
> >call debian/rules clean which I don't understand why!
> 
> Apparently ":=" assignments are evaluated always exactly once,
> regardless of whether the variable is global or target-specific.

I see I didn't knew that. Thanks!
> 
> >Do you have any other alternatives for this?
> 
> The alternative is to use shell variables for this purpose. I find
> it convenient to have a separate script to create .orig.tar, and
> make get-orig-source just call it.

Done :-). (well you already know from d-m discussion)

-- 
Vasudev Kamath
http://copyninja.info
Connect on ~friendica: copyninja@{frndk.de | vasudev.homelinux.net}
IRC nick: copyninja | vasudev {irc.oftc.net | irc.freenode.net}
GPG Key: C517 C25D E408 759D 98A4  C96B 6C8F 74AE 8770 0B7E

Attachment: signature.asc
Description: Digital signature


Reply to: