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: References: From: "gene glick (geneglick AT optonline DOT net) [via geda-user AT delorie DOT com]" Date: Sat, 30 Jul 2016 23:13:07 -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=94eb2c0775b8e285940538e5dc4f 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 --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 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, 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
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, Ju= l 30, 2016 at 10:45 PM, gene glick <geneglick AT optonline DOT net><= /span> wrote:
= that's precisely what I tried, but it's not working.

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.

I'= m using gnu make 3.81 on windows for this - but I don't windows vs linu= x 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


--94eb2c0775b8e285940538e5dc4f--