"Andres Mejia" <[EMAIL PROTECTED]> writes:

> Package: debian-policy
> Version: 3.7.3
> Tags: patch
>
> Debian Policy Section 10.1 contains the following makefile snippet in
> regards to using the 'nostrip' option.
>
> ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
> INSTALL_PROGRAM += -s
> endif

$(findstring nostrip,$(DEB_BUILD_OPTIONS)) will return the empty string if
nostrip is *not* present in DEB_BUILD_OPTIONS.

ifeq compares the results to the empty string.

Therefore, the effect of this makefile fragment is to add -s to
INSTALL_PROGRAM if nostrip is *not* present in DEB_BUILD_OPTIONS.

I believe that's correct.  It is extremely counterintuitive and I had to
read it multiple times myself to be sure I understood it.

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to