Subject: Re: pkgsrc/doc/guide/Makefile
To: Ben Collver <collver@peak.org>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 12/24/2004 08:00:11
On Thu, Dec 23, 2004 at 11:08:43AM -0800, Ben Collver wrote:
> Hi tech-pkg,
> 
> I am having trouble with 'make extract' in the guide.
> 
> Does the following patch look right?
> 
> Thank you,
> 
> Ben
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/doc/guide/Makefile,v
> retrieving revision 1.8
> diff -u -r1.8 Makefile
> --- Makefile    20 Nov 2004 13:24:00 -0000      1.8
> +++ Makefile    23 Dec 2004 19:06:02 -0000
> @@ -58,6 +58,7 @@
>  .endif
> 
>  pre-extract:
> +       ${MKDIR} -p ${WRKSRC}
>         @cd ${FILESDIR} && ${PAX} -rw . ${WRKSRC}
>         ${RM} -f ${WRKSRC}/share/netbsd.dsl \
>         && ${LN} -s ../../htdocs/share/xml/netbsd.dsl ${WRKSRC}/share/netbsd.dsl

Some operating systems don't have a mkdir that understands "-p".

I'd just use ${MKDIR} in this situation, but mainly for another
reason:

[7:58:01] agc@sys3 ...pkgsrc/audio/gramofile 344 > make show-var VARNAME=MKDIR
/bin/mkdir -p
[7:58:09] agc@sys3 ...pkgsrc/audio/gramofile 345 >

Regards,
Alistair