Mail Archives: geda-user/2016/07/30/23:15:23
--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"><<a href=3D"mailto:=
geneglick AT optonline DOT net" target=3D"_blank">geneglick AT optonline DOT net</a>><=
/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's precisely what I tried, but it's not working.<br><br></div>U=
sing DJ's example, if foo.obj is missing, make builds it correctly. The=
n if I 'touch' bar.inc, it doesn't rebuild.<br><br></div>I'=
m using gnu make 3.81 on windows for this - but I don'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"><<a href=3D"mailto:gedau AT igor2 DOT rep=
o.hu" target=3D"_blank">gedau AT igor2 DOT repo DOT hu</a>></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) $<<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'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 -