[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incompatible change in rules.make as of v1.149
From: |
Nicola Pero |
Subject: |
Re: Incompatible change in rules.make as of v1.149 |
Date: |
Tue, 22 Apr 2003 15:30:27 +0100 (BST) |
> Hi,
>
> in version 1.149 Nicola removed the built-in suffixes to speed up
> performance. Sadly this broke the build of our EDMessage framework, as
> there's no default rule to compile yacc/bison grammars anymore.
> Shouldn't these also be defined there (rules.make) or is this
> responsibility of someone's own GNUMakefiles? I tend to say that it
> should be considered basic functionality and hence should go into
> rules.make.
Interesting.
:-)
The rule you need is probably something like -
%.c: %.y
$(YACC) $(YACC_FLAGS) $<
mv -f y.tab.c $@
Yes, we could either include this rule inside gnustep-make - or expect the
programmer to write the rule himself.
I think expecting the programmer to write the rule himself is quite
reasonable ... but given that the performance hit from this rule is very
small, I just added it. I also added a corresponding lex rule.