9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] mk surprises me
Date: Thu, 28 Mar 2002 11:50:58 +0100	[thread overview]
Message-ID: <200203281050.g2SAoxx02298@copernicus.cs.utwente.nl> (raw)
In-Reply-To: Your message of "Thu, 28 Mar 2002 09:01:07 +0100." <200203280801.g2S817U21452@cbe.ericsson.se>

> ...deleted
> > I tried your example on plan 9 mk, and it seemed to work as expected.
> 
> just to check 'work as expected':
> the recipe was done (cp f1.c f1), even when f1.c was older than f1,
> provided that hdr.h was younger than f1?

Hmm. as it turned out, also my second message lacked a little coffee,
I'm very sorry for just having added to the confusion :-(

In retrospect, I think I got on the same results that you got (but did
not look/try far/hard enough to realise that). Repeating the experiment:

f1.c and hdr.h exist, no f1 yet: mk fc1: cp is done.
all exist, f1 newer than both f1.c and hdr.h: mk fc1: 'up to date'
touch hdr.h, so
all exist, f1 newer than f1.c but older than hdr.h: mk fc1: 'no recipe'

I tried also a variant of forsyth's solution, by just changing the
dependency fo hdr.h to be: 
   &: hdr.h
without changing the lines for the copy rule, I did get the expected
result (cp f1.c f1, even when f1.c was older than f1, provided that
hdr.h was younger than f1)

(while redoing the experiment, I got an interesting result that
 took me a while to figure out.
 I (re)booted a laptop to run the plan9 mk experiment.
 The laptop runs aux/timesync -rL . It looks like it shifted the
 clock back one hour (timezone related problem?) just after I had
 remade the first f1, which therefore was a quite a bit newer than
 the hdr.h that I 'updated' using touch, to be one hour minus some
 minutes older than the remade f1.
 Essentially, the laptop multiboots plan 9, linux, windows98 and nt,
 and I have not yet been able to get a 'stable' clock.
)

Sorry for the confusion,
Axel.



  reply	other threads:[~2002-03-28 10:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-28  8:01 Bengt Kleberg
2002-03-28 10:50 ` Axel Belinfante [this message]
2002-03-28 11:04   ` William Josephson
  -- strict thread matches above, loose matches on Subject: below --
2002-04-02  7:49 Bengt Kleberg
2002-03-28 14:52 David Gordon Hogan
2002-03-28  8:17 Bengt Kleberg
2002-03-27 14:10 forsyth
2002-03-27 13:10 Bengt Kleberg
2002-03-27 13:40 ` Axel Belinfante
2002-03-27 13:56   ` Axel Belinfante

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=200203281050.g2SAoxx02298@copernicus.cs.utwente.nl \
    --to=axel.belinfante@cs.utwente.nl \
    --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).