Subject: Re: simplifying an installation of examples and doc files
To: None <tech-pkg@NetBSD.org>
From: Roland Illig <rillig@NetBSD.org>
List: tech-pkg
Date: 10/22/2007 11:50:24
Ignatios Souvatzis wrote:
> On Sun, Oct 21, 2007 at 11:41:46PM +0200, Roland Illig wrote:
>
>
>>I tried to trade-off complexity for generality. I don't think the following
>>lines are hard to understand:
>>
>>INST_GROUPS+= docs
>>INST_FROM.docs= doc
>>INST_FILES.docs= *.html
>>INST_TO.docs= share/doc/${PKGNAME}
>>
>>Well, ok, compared to the explicit command
>>
>>cd ${WRKSRC}/doc \
>>&& ${INSTALL_DATA} *.html ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}/.
>>
>>it may be pretty verbose. I thought I could remove some of the redundancy
>>(WRKSRC, DESTDIR, PREFIX), but now I think I only made it worse.
>
>
> well, the second form would make it possible to auto-generate (part of)
> the PLIST file, wouldn't it?
If you mean http://mail-index.netbsd.org/tech-pkg/2006/10/24/0002.html,
that won't be done (see the numerous follow-ups).
The print-PLIST target would work with both forms.
Roland