Bug#460486: debian-policy: Section 10.1 as a mistake in example makefile snippet.
"Andres Mejia" <email@example.com> 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
$(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 (firstname.lastname@example.org) <http://www.eyrie.org/~eagle/>