www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/07/30/22:47:30

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optonline.net;
s=dkim-001; t=1469933102;
bh=D+BXg4jptqYnDyajt6zdmdZKBSEWlrbB8CnOZXzQ6SM=;
h=From:Date:Message-ID:Subject:To;
b=QRv5XNgBqe6T+4m8uN+DVeAaWOVia3Mku5kPbqFKeQO3RacJOlMNj+8j7FuTV6VVv
10qx4Anfz8TF5bLRbJ+Yk+6t4cJccbZOr96bQUe00qeK8pt2U7hR7MbItOYmvAX17K
PqxOKw0JfPgukBKo36SuugB+8YuELlVtkfIvXau80JkSo6IGBIbb18v5cWgqkeZFwA
ZrcQoppPRNr+60x28tQSfH85grPzmdwwhHHfPt7KhfRFfDVIrtBtNiPWIyNWOZsblz
NHoPON7doMi036gj0qR7g7tdGa9EtBL6WTzFlIa0ZC0EgR/zGeu03l57JS/zEA+dWU
eg7F1GPTU2tYQ==
Authentication-Results: mta3.srv.hcvlny.cv.net smtp.user=geneglick; auth=pass (LOGIN)
X-Content-Analysis: v=2.1 cv=PtRuFF43 c=1 sm=1 tr=0 a=efucFQLlTApXdAUyFwMLow==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=cAmyUtKerLwA:10 a=xRfjoxBpAAAA:8 a=Mj1Xp5F7AAAA:8 a=d7TZp7FTYzG3RvbR-zAA:9 a=QEXdDO2ut3YA:10 a=ANK12zAQyPDnI1ld5sMA:9 a=TO0gMasKI8t5os8L:21 a=NWVoK91CQySWRX1oVYDe:22 a=4plUlNce3Gdv3FjnGo9M:22 a=OCttjWrK5_uSHO_3Hkg-:22
X-Gm-Message-State: AEkoouu+S/9V8z+g3iCChOzxrfaMHFXzbOCV13b98RXTAxO2fbH9gGifWmXTznBfcZY7d1D+1A0pOcrsJR5WGQ==
X-Received: by 10.129.136.199 with SMTP id y190mr40231324ywf.198.1469933101057;
Sat, 30 Jul 2016 19:45:01 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <alpine.DEB.2.00.1607310425290.7286@igor2priv>
References: <CAGBFkM1JhE=L-=pTD4KBU8i6_bsOvvox43KVRjavXji3vhTsJQ AT mail DOT gmail DOT com>
<alpine DOT DEB DOT 2 DOT 00 DOT 1607310425290 DOT 7286 AT igor2priv>
From: "gene glick (geneglick AT optonline DOT net) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Sat, 30 Jul 2016 22:45:00 -0400
X-Gmail-Original-Message-ID: <CAGBFkM1QBbYbPciu9WFSQzgbR0x-wCYQy7jJTHYB48LAZjPT7w AT mail DOT gmail DOT com>
Message-ID: <CAGBFkM1QBbYbPciu9WFSQzgbR0x-wCYQy7jJTHYB48LAZjPT7w@mail.gmail.com>
Subject: Re: [geda-user] OT: gnu make
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--001a114c5e36550d850538e578f9
Content-Type: text/plain; charset=UTF-8

that's precisely what I tried, but it's not working.

Using DJ's example, if foo.obj is missing, make builds it correctly. Then
if I 'touch' bar.inc, it doesn't rebuild.

I'm using gnu make 3.81 on windows for this - but I don't windows vs linux
version matters, does it?

On Sat, Jul 30, 2016 at 10:26 PM, <gedau AT igor2 DOT repo DOT hu> wrote:

>
>
> On Sat, 30 Jul 2016, gene glick (geneglick AT optonline DOT net) [via
> geda-user AT delorie DOT com] wrote:
>
> I hope someone can help me out - stuck on this one . . .
>>
>> I am trying to write a pattern rule, something like this:
>>
>> %.obj : %.asm
>>      $(AS) $<
>>
>> But how do I get make to understand that each asm file has a different set
>> of dependencies?
>>
>
> After that rule, you can also add dependency lines which don't have
> commands:
>
> foo.obj: foo.asm gen.inc blobb.inc
>
> bar.obj: bar.asm baz.inc
>

--001a114c5e36550d850538e578f9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>that&#39;s precisely what I tried, but it&#39;s =
not working.<br><br></div>Using DJ&#39;s example, if foo.obj is missing, ma=
ke builds it correctly. Then if I &#39;touch&#39; bar.inc, it doesn&#39;t r=
ebuild.<br><br></div>I&#39;m using gnu make 3.81 on windows for this - but =
I don&#39;t windows vs linux version matters, does it?<br></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Jul 30, 2016 at 10:=
26 PM,  <span dir=3D"ltr">&lt;<a href=3D"mailto:gedau AT igor2 DOT repo DOT hu" target=
=3D"_blank">gedau AT igor2 DOT repo DOT hu</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
On Sat, 30 Jul 2016, gene glick (<a href=3D"mailto:geneglick AT optonline DOT net"=
 target=3D"_blank">geneglick AT optonline DOT net</a>) [via <a href=3D"mailto:geda=
-user AT delorie DOT com" target=3D"_blank">geda-user AT delorie DOT com</a>] wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
I hope someone can help me out - stuck on this one . . .<br>
<br>
I am trying to write a pattern rule, something like this:<br>
<br>
%.obj : %.asm<br>
=C2=A0=C2=A0=C2=A0=C2=A0 $(AS) $&lt;<br>
<br>
But how do I get make to understand that each asm file has a different set<=
br>
of dependencies?<br>
</blockquote>
<br></div></div>
After that rule, you can also add dependency lines which don&#39;t have com=
mands:<br>
<br>
foo.obj: foo.asm gen.inc blobb.inc<br>
<br>
bar.obj: bar.asm baz.inc<br>
</blockquote></div><br></div>

--001a114c5e36550d850538e578f9--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019