9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <9nut@9netics.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] mk delayed evaluation
Date: Mon, 16 Jan 2006 17:33:01 -0800	[thread overview]
Message-ID: <0426ebbb80d1df943785d2e2f2821bb3@9netics.com> (raw)
In-Reply-To: <20060117002301.90F1E1140E3@dexter-peak.quanstro.net>

i'm sure i don't want that. there are many more params in CFLAGS
and remembering which one should be last is a hack; as is having
to change the rules every time i want to exclude the '-Fb $stem.PDB'

> i think this is what you want
> 
> CFLAGS=-Zi -Fb 
> 
> %.$O:	%.c
> 	$$ $CFLAGS $stem.PDB $stem.c
> 
> Skip Tavakkolian <9nut@9netics.com> writes
> 
> | 
> | i'm not finding it in docs. i want to delay the evaluation of $stem
> | in a variable until the rule is applied; how is that done?
> | 
> | example:
> | 
> | CFLAGS=-Zi -Fb $stem.PDB	# yes, funky MS flags
> | 
> | %.$O:	%.c
> | 	$CC $CFLAGS $stem.c



  reply	other threads:[~2006-01-17  1:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-16 21:49 Skip Tavakkolian
2006-01-17  0:23 ` erik quanstrom
2006-01-17  1:33   ` Skip Tavakkolian [this message]
2006-01-17  0:54     ` erik quanstrom
2006-01-17  0:41 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0426ebbb80d1df943785d2e2f2821bb3@9netics.com \
    --to=9nut@9netics.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).