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: References: From: "gene glick (geneglick AT optonline DOT net) [via geda-user AT delorie DOT com]" Date: Sat, 30 Jul 2016 22:45:00 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [geda-user] OT: gnu make To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=001a114c5e36550d850538e578f9 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 Precedence: bulk --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, 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
that's precisely what I tried, but it's = not working.

Using DJ's example, if foo.obj is missing, ma= ke builds it correctly. Then if I 'touch' bar.inc, it doesn't r= ebuild.

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
=C2=A0=C2=A0=C2=A0=C2=A0 $(AS) $<

But how do I get make to understand that each asm file has a different set<= br> of dependencies?

After that rule, you can also add dependency lines which don't have com= mands:

foo.obj: foo.asm gen.inc blobb.inc

bar.obj: bar.asm baz.inc

--001a114c5e36550d850538e578f9--