delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/07/30/23:15:23

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=1469934789;
bh=H5WTOk+RlandatlyKEG+50Dj485VieiuvfTWPyWAGO4=;
h=From:Date:Message-ID:Subject:To;
b=rcz8pdh7HXs7wuiIJPH3Cq2MnHVZc/kM7ferq0XEwNDCBErnrUA7Q3Onay3bPRJQg
bFSrS8+BsJlT0c93ghS5OTE4Je9KPYPjEHc3w3sM/c9IZ/g2ISa79PtYWWgjeuqrLU
Aj2LTainl13SY3H3zTn99PPO6HfKUPKoizoOypPoj7/kToVicUSBszZyr+32e8UhEK
wVHe46DJlaWwuHyzRo7D9DV0JQIdNMXMZg17gaqu/D9whJ95nlquh1L3ZIJLohn2SU
Jk17hqodlZQLN43J3qmR830gb5R4WeP5hqfTukVst3SEgn7Y3VM5mNVedAgQk/2krT
hDWRihK2Vsb6w==
Authentication-Results: mta4.srv.hcvlny.cv.net smtp.user=geneglick; auth=pass (LOGIN)
X-Content-Analysis: v=2.1 cv=dssmcAU4 c=1 sm=1 tr=0 a=LC3G8YTM8u3xtKS0YaWp3w==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=cAmyUtKerLwA:10 a=xRfjoxBpAAAA:8 a=Mj1Xp5F7AAAA:8 a=sr9IlG8KuXXp_QClwGoA:9 a=QEXdDO2ut3YA:10 a=pTl6kwYD98atrvByJB0A:9 a=1wuwC-dK8TfEUYg6:21 a=NWVoK91CQySWRX1oVYDe:22 a=4plUlNce3Gdv3FjnGo9M:22 a=OCttjWrK5_uSHO_3Hkg-:22
X-Gm-Message-State: AEkooutJaaHci4GugxKz8hh0CfChuMuy1Bal+01EB/0saOxFih2YWXpuudbtM7BuZxDrM4FPhKBHc5Es2gnJ0g==
X-Received: by 10.13.215.71 with SMTP id z68mr41736291ywd.293.1469934788049;
Sat, 30 Jul 2016 20:13:08 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAGBFkM1QBbYbPciu9WFSQzgbR0x-wCYQy7jJTHYB48LAZjPT7w@mail.gmail.com>
References: <CAGBFkM1JhE=L-=pTD4KBU8i6_bsOvvox43KVRjavXji3vhTsJQ AT mail DOT gmail DOT com>
<alpine DOT DEB DOT 2 DOT 00 DOT 1607310425290 DOT 7286 AT igor2priv> <CAGBFkM1QBbYbPciu9WFSQzgbR0x-wCYQy7jJTHYB48LAZjPT7w AT mail DOT gmail DOT com>
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 23:13:07 -0400
X-Gmail-Original-Message-ID: <CAGBFkM0qQEy4Ljue5dtHjhD6W7DrZBj4LZCrNHcDNaBpfNoNcQ AT mail DOT gmail DOT com>
Message-ID: <CAGBFkM0qQEy4Ljue5dtHjhD6W7DrZBj4LZCrNHcDNaBpfNoNcQ@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

--94eb2c0775b8e285940538e5dc4f
Content-Type: text/plain; charset=UTF-8

actually, in a simple Makefile, it works just fine as you guys have
written. Something must be wrong with my larger version. Hmm..

On Sat, Jul 30, 2016 at 10:45 PM, gene glick <geneglick AT optonline DOT net>
wrote:

> 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
>>
>
>

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

<div dir=3D"ltr">actually, in a simple Makefile, it works just fine as you =
guys have written. Something must be wrong with my larger version. Hmm..<br=
></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Ju=
l 30, 2016 at 10:45 PM, gene glick <span dir=3D"ltr">&lt;<a href=3D"mailto:=
geneglick AT optonline DOT net" target=3D"_blank">geneglick AT optonline DOT net</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div>=
that&#39;s precisely what I tried, but it&#39;s not working.<br><br></div>U=
sing DJ&#39;s example, if foo.obj is missing, make builds it correctly. The=
n if I &#39;touch&#39; bar.inc, it doesn&#39;t rebuild.<br><br></div>I&#39;=
m using gnu make 3.81 on windows for this - but I don&#39;t windows vs linu=
x version matters, does it?<br></div><div class=3D"HOEnZb"><div class=3D"h5=
"><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 rep=
o.hu" target=3D"_blank">gedau AT igor2 DOT repo DOT hu</a>&gt;</span> wrote:<br><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex"><div><div><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>
</div></div></blockquote></div><br></div>

--94eb2c0775b8e285940538e5dc4f--

- Raw text -


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