[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dependency checked for existance but not timestamp
From: |
Torc Online |
Subject: |
Dependency checked for existance but not timestamp |
Date: |
Fri, 4 Feb 2005 12:22:59 -0800 (PST) |
Hello,
I'm having a bit of a problem that I can't seem to
sort out.
I'm trying to use a generic rule to copy
non-compilable files (scripts, docs, etc) from the
source directory to the distribution directory if they
have changed.
This Makefile properly copies the source to the target
if the target does not exist. However, if the source
is updated, a new copy operation is not triggered.
I have manually verified the time stamps and those do
not appear to be the source of the problems. Further
evidence that it isn't time stamps is that the cpp
files still work properly.
I've created a minimal Makefile to test this behavior:
=================================================
all: testdir/testfile
@echo Done
# Any file not covered by other rules is just copied.
%: $(@F)
@mkdir -p $(@D)
cp -f $(@f) $@
=================================================
Below is the make -d output from running this Makefile
after doing a "touch" on the source file.
=================================================
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A
PARTICULAR PURPOSE.
Reading makefiles...
Reading makefile `Makefile'...
Updating makefiles....
Considering target file `Makefile'.
Looking for an implicit rule for `Makefile'.
Trying pattern rule with stem `Makefile'.
Found an implicit rule for `Makefile'.
Finished prerequisites of target file `Makefile'.
No need to remake target `Makefile'.
Updating goal targets....
Considering target file `all'.
File `all' does not exist.
Considering target file `testdir/testfile'.
Looking for an implicit rule for
`testdir/testfile'.
Trying pattern rule with stem `testfile'.
Found an implicit rule for `testdir/testfile'.
Finished prerequisites of target file
`testdir/testfile'.
No need to remake target `testdir/testfile'.
Finished prerequisites of target file `all'.
Must remake target `all'.
echo Done
Done
Putting child 0x08074c10 (all) PID 23311 on the chain.
Live child 0x08074c10 (all) PID 23311
Got a SIGCHLD; 1 unreaped children.
Reaping winning child 0x08074c10 PID 23311
Removing child 0x08074c10 PID 23311 from chain.
Successfully remade target file `all'.
=================================================
Does anyone know what's wrong or have a good work
around?
Thanks,
Dustan
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
- Dependency checked for existance but not timestamp,
Torc Online <=