Message from discussion
pgxn-style makefiles and flex/bison
Received: by 10.101.138.8 with SMTP id q8mr9422175ann.1.1329119150129;
Sun, 12 Feb 2012 23:45:50 -0800 (PST)
X-BeenThere: pgxn-users@googlegroups.com
Received: by 10.101.191.6 with SMTP id t6ls5060486anp.1.gmail; Sun, 12 Feb
2012 23:45:49 -0800 (PST)
Received: by 10.101.172.7 with SMTP id z7mr9419484ano.10.1329119149637;
Sun, 12 Feb 2012 23:45:49 -0800 (PST)
Received: by 10.101.172.7 with SMTP id z7mr9419483ano.10.1329119149624;
Sun, 12 Feb 2012 23:45:49 -0800 (PST)
Return-Path: <umi.tan...@gmail.com>
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182])
by gmr-mx.google.com with ESMTPS id m29si9851571qco.0.2012.02.12.23.45.49
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 12 Feb 2012 23:45:49 -0800 (PST)
Received-SPF: pass (google.com: domain of umi.tan...@gmail.com designates 209.85.216.182 as permitted sender) client-ip=209.85.216.182;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of umi.tan...@gmail.com designates 209.85.216.182 as permitted sender) smtp.mail=umi.tan...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-qy0-f182.google.com with SMTP id t40so3332265qcm.41
for <pgxn-users@googlegroups.com>; Sun, 12 Feb 2012 23:45:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=2Lyc9SQ4jivgEQFHfvzptKcWDA2/xMN/oz9BgWDNhqs=;
b=tvWSRT6UMfOzt1gMrLplt9BziaIcuxO63OC+aq72T0Oi8zvmN2K2MUH9+0kGkQ9w6h
uxh/Ci6UtdQ+rhNPsFZEj8C0xUJokKGDcLdpp9Yt4nOz1Y+DjnegjQV9igqycWxfW0wi
sMdyrVU8PejrxZ1hOWVTyiHa6k/pPbizCNj/Q=
MIME-Version: 1.0
Received: by 10.229.136.82 with SMTP id q18mr8119268qct.139.1329119149483;
Sun, 12 Feb 2012 23:45:49 -0800 (PST)
Received: by 10.229.190.137 with HTTP; Sun, 12 Feb 2012 23:45:49 -0800 (PST)
In-Reply-To: <27214279.1099.1329078608347.JavaMail.geo-discussion-forums@vbyb17>
References: <27214279.1099.1329078608347.JavaMail.geo-discussion-forums@vbyb17>
Date: Sun, 12 Feb 2012 23:45:49 -0800
Message-ID: <CAP7QgmnaTn0WZEck204a2_9XY+6NG_FhUkK+POcoc_FQdfv...@mail.gmail.com>
Subject: Re: pgxn-style makefiles and flex/bison
From: Hitoshi Harada <umi.tan...@gmail.com>
To: pgxn-users@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Feb 12, 2012 at 12:30 PM, Jay Levitt <j...@jay.fm> wrote:
> I'm using contrib/cube as a starting point, and am having absolutely no luck
> with moving the C/flex/bison source into a src/ directory.
>
> # cubescan is compiled as part of cubeparse. I am not renaming it yet,
> because flex/bison could be messy.
> cubeparse.o: src/cubescan.c
>
> cubeparse.c: src/cubeparse.y
> ifdef BISON
> $(BISON) $(BISONFLAGS) -o $@ $<
> else
> @$(missing) bison $< $@
> endif
>
> cubescan.c: src/cubescan.l
> ifdef FLEX
> $(FLEX) $(FLEXFLAGS) -o'$@' $<
> else
> @$(missing) flex $< $@
> endif
Did you try adding src/ to cubeparse.c and cubescan.c as targets?
Thanks,
--
Hitoshi Harada