bug-make
[Top][All Lists]
Advanced

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

Re: creation of a directory


From: Paul D. Smith
Subject: Re: creation of a directory
Date: Fri, 30 Jan 2004 10:12:35 -0500

%% Boris Kolpackov <address@hidden> writes:

  bk> I was wondering if there is a valid reason for the following makefile
  bk> not to work.

  bk> hello : | foo/

  bk> hello :
  bk>   @echo hello

  bk> %/ :
  bk>   mkdir $*

GNU make strips trailing slashes, so that "foo/" and "foo" are
considered the same prerequisite.

You can get your makefile to work like this:

  hello : | foo/.

  hello :
        @echo hello

  %/. :
        mkdir $*

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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