[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bmake: variable modifiers in SysV include
In article <20180329073239.35dupya2zhqar4fk%ptrcrt.ch@localhost>,
Pietro Cerutti <gahr%FreeBSD.org@localhost> wrote:
>see below my original message to a FreeBSD mailing list, which I'm
>forwarding here sa per Simon's suggestion.
>Anybody with historical memory on SysV-style "include" directive in
>bmake can shed a light on why an include is prevented if a colon is
>found in the parsed line?
Yes, although I should stop admitting stuff like that because it shows
my age (but also my good memory retention) :-)
It was to provide compatibility for targets called "include".
I.e. if it has a : it is probably a dependency line not an include
$ touch bar.h
$ cat << EOF > m2
include foo.h: bar.h
@echo out[$@] in[$>]
$ make -f m2
$ gmake -f m2
m2:2: foo.h:: No such file or directory
m2:3: *** recipe commences before first target. Stop.
I guess it can be removed :-)
Main Index |
Thread Index |