[Build-common-hackers] Re: cdbs question

Colin Walters walters@verbum.org
Wed, 03 Dec 2003 18:10:56 -0500


--=-egERxS6ldgMj2zPERBkb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Mon, 2003-12-01 at 16:08, Martin-=C3=89ric Racine wrote:

> I really cannot see what would fail in the following diminutive Makefile:
>=20
> 8X-----
> CC =3D gcc
> CFLAGS =3D -Wall -O9

Offtopic but: -09?  Anything over -O2 will often at best have no effect,
at worst make your program slower.

> The addition of $(DESTDIR) to the software's crude Makefile was all it to=
ok to
> make it work with a traditional debian/rules made of dh_* -powered target=
s, but
> it won't do with CDBS, for some reason.

Just add this to the end of your debian/rules:

DEB_MAKE_INSTALL_TARGET :=3D install DESTDIR=3D$(DEB_DESTDIR)

If you look at the source to makefile.mk, you'll see that it skips the
common-install step if DEB_MAKE_INSTALL_TARGET isn't set.  The reason is
because outside of Automake, DESTDIR isn't standardized.  Some people
use PREFIX for instance.  So since there is no sane default, cdbs just
doesn't try.


--=-egERxS6ldgMj2zPERBkb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/zm2AOIkJWWp2WGURAsnQAJ9kBJgWDuU0ADoMl5h92I31063VNwCeOp7w
m9+AI46ThTtl4Wn7ydG9rf4=
=5DNU
-----END PGP SIGNATURE-----

--=-egERxS6ldgMj2zPERBkb--