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

Re: Re: Re: Makefile.in



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 08 July 2001 9:57 pm, Robert Millan wrote:
> On Sun, 8 Jul 2001 15:06:31 -0400, Steve M. Robbins 
<steven.robbins@videotron.ca>  wrote:
> > Making a package involves "installing" it!
> >
> > You had better re-read the packaging manual.  The New Maintainer's
> > Guide http://www.debian.org/doc/maint-guide/ is quite good.
>
> But the maint-guide tells me to modify the Makefile.in file, in order
> to build the package with "dpkg-buildpackage -rfakeroot" later.
>
> I'd like to create a source package so i can compile it later for
> specific archs, does this procedure create a source package too?
>
> thank you,
>

Looking at a sample debian./rules (this one from apt-spy which I have 
passing familiarity with), the configure-stamp: target:

configure-stamp:
        dh_testdir
        ./configure --program-transform-name=s/apt-sources/apt-spy/ \ 
- --prefix=/usr --mandir=\$${prefix}/share/man \ 
- --infodir=\$${prefix}/share/info
 
        touch configure-stamp

Basically you do the ./configure (with associated options) *inside* 
debian/rules.  Do not edit or alter upstream makefiles if you can help 
it at all would appear to be the rule of thumb.  Obviously if there is 
no other way to do something then you should do it in the makefile, but 
I would say that in this case, passing options to ./configure should do 
what you need.  ("./configure --help | less" is a useful thing to do).

Hope that points in the right direction.
- -- 
Stephen Stafford
GPG public key on request
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7SPvQFwmY7Xa4pD0RAjseAJ4orsQAKvAE+XKZmxh3Ao6gyApUCQCgkfnW
oBXIUIrt39N8UPAPY623Plo=
=nof2
-----END PGP SIGNATURE-----



Reply to: