help-make
[Top][All Lists]
Advanced

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

why does make strip / at the end of a directory prerequisite??


From: Mark Galeck (CW)
Subject: why does make strip / at the end of a directory prerequisite??
Date: Wed, 7 Sep 2011 19:01:37 -0700

Hello,

This ought to work  - it works on Windows GNU Make, but not on Linux:


%/:
        mkdir -p $@

dir/foobar: dir/
        touch $@




GNU Make on Linux thinks that dir is the prerequisite, not dir/, and bombs.  


Is this a bug??

Mark






reply via email to

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