bug-make
[Top][All Lists]
Advanced

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

case where make -W <absolute path> doesn't work


From: Nicholas Baggott
Subject: case where make -W <absolute path> doesn't work
Date: Thu, 23 Aug 2001 16:39:02 -0700

Hi,

Below is a testcase where the -W option works if you specify the file
with relative path but not when you specify it with absolute path.

Thanks to all of you for an excellent utility!

Regards,
   Nick

######## Bug Report #################

Consider this makefile:
####### Makefile

setup:
    touch 1
sleep 10
    touch 2

1 : 2
    @echo making 1

####### end Makefile


Case 1
As expected when I run:
   % make setup
   % make 1
I see "making 1"

Case 2
If I run
   % make setup
   % make -W 1 1
I get "make: `1' is up to date." Again this is expected

Case 3
However, when I run
   % make setup
   % make -W `pwd`/1 1
I get "making 1". I expected "make: `1' is up to date."

>From my reading of the manual, it should be possible to specify the file to
be
considered infinitely new by either absolute or relative path.

Here output of "make --version"
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.6
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        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.

Report bugs to <address@hidden>.

And the output of "uname -a":
SunOS armada 5.6 Generic_105181-26 sun4u sparc





reply via email to

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