Larson, Timothy E. | 1 Jul 2008 15:48

using -f for make

The main makefile for a new package I'm working with does not use a standard
name, so the pkgsrc build process can't find it when it descends to the work
directory.  How do I tell the package Makefile where the source's makefile
is?

Thanks,
Tim

--

-- 
Tim Larson        AMT2 Unix Systems Administrator
    InterCall, a division of West Corporation

               Eschew obfuscation!
Attachment (smime.p7s): application/x-pkcs7-signature, 9 KiB
Adam Hoka | 1 Jul 2008 16:15
Picon
Gravatar

Re: using -f for make

Larson, Timothy E. wrote:

> The main makefile for a new package I'm working with does not use a standard
> name, so the pkgsrc build process can't find it when it descends to the work
> directory.  How do I tell the package Makefile where the source's makefile
> is?
> 
> Thanks,
> Tim
> 

Like this:

MAKE_FILE=       GNUmakefile

HTH,

--
Adam
Jeremy C. Reed | 1 Jul 2008 16:14

Re: using -f for make

> The main makefile for a new package I'm working with does not use a standard
> name, so the pkgsrc build process can't find it when it descends to the work
> directory.  How do I tell the package Makefile where the source's makefile
> is?

Use MAKE_FILE. Many examples in pkgsrc.

See pkgsrc Guide (pkgsrc/doc/pkgsrc.txt):

The default value of MAKE_PROGRAM is "gmake" if USE_TOOLS contains 
"gmake", "make" otherwise. The default value of MAKE_FILE is "Makefile", 
and BUILD_TARGET defaults to "all".

Larson, Timothy E. | 1 Jul 2008 16:23

RE: using -f for make

Jeremy C. Reed <mailto:reed <at> reedmedia.net> wrote:
> Use MAKE_FILE. Many examples in pkgsrc.
> 
> See pkgsrc Guide (pkgsrc/doc/pkgsrc.txt):
> 
> The default value of MAKE_PROGRAM is "gmake" if USE_TOOLS contains
> "gmake", "make" otherwise. The default value of MAKE_FILE is
> "Makefile", and BUILD_TARGET defaults to "all".  

That sounds like what I needed - thanks!

It would be _really_ helpful if the Guide had an appendix of all the
makefile variables and what they did.  I read through all the sections that
seemed like they'd be relevant to this question, but didn't find this
answer.

Tim

--

-- 
Tim Larson        AMT2 Unix Systems Administrator
    InterCall, a division of West Corporation

               Eschew obfuscation!
Attachment (smime.p7s): application/x-pkcs7-signature, 9 KiB
Aleksej Saushev | 1 Jul 2008 19:33
Picon

Re: using -f for make

"Larson, Timothy E." <TELarson <at> west.com> writes:

> It would be _really_ helpful if the Guide had an appendix of all the
> makefile variables and what they did.  I read through all the sections that
> seemed like they'd be relevant to this question, but didn't find this
> answer.

I doubt, that it is good addition to the Guide, it just
overloads it with mostly useless information, in my opinion,
but it sounds like a wrapper around "make help".

--

-- 
CE3OH...

reilles | 1 Jul 2008 16:06
Picon
Favicon

Re: using -f for make

Hi,

Quoting "Larson, Timothy E." <TELarson <at> west.com>:
> The main makefile for a new package I'm working with does not use a standard
> name, so the pkgsrc build process can't find it when it descends to the work
> directory.  How do I tell the package Makefile where the source's makefile
> is?
You should look at
http://www.netbsd.org/docs/pkgsrc/build.html
where the WRKSRC variable is described.
You should set it in the package Makefile to where the distfile is extracted.

Cheers,
antoine


Gmane