Subject: Re: build depends on bison or yacc?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 07/30/2003 13:42:28
On Wed, 30 Jul 2003 04:23:22 -0700 (PDT)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:
> A basic idea is here:
>
> # $NetBSD$
> #
> # This Makefile fragment is included by packages that need a yacc
> # at build time.
>
> .if !defined(YACC_MK)
> YACC_MK= # defined
>
> .if exists(/usr/bin/yacc)
> YACC= /usr/bin/yacc
> .elif exists(/usr/bin/bison)
> YACC= /usr/bin/bison -y
Aside from this, it may be interesting to also define the YACC variable in
the defs.*.mk files. On some systems, we can know beforehand where will it
be, right?
--
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/