%% Boris Kolpackov <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          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


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to