help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$(@F) as dependecy


From: Maciej Walezak
Subject: $(@F) as dependecy
Date: Tue, 12 Feb 2002 17:52:34 +0100

Hello

I have the following rule:

TARGETS = dir1/file.o dir2/file.h

$(TARGETS): $(@F)
        $(ECHO) \* Copying $(@F) -\> $@
        $(CP) $(@F) $@

The rule works i.e. copies given file from source to destination directory if 
the file doesn't exist in destination directory but fails if the destination 
file exists and local file is newer that destination.
Why?
Is there another way to achive the behavior I need?

greetings
--
Maciej Walezak
-GDN-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]