bug-make
[Top][All Lists]
Advanced

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

Re: Checking application of dependencies from make rules without recipes


From: Henrik Carlqvist
Subject: Re: Checking application of dependencies from make rules without recipes
Date: Sun, 18 Jun 2017 20:08:15 +0200

On Sun, 18 Jun 2017 19:45:34 +0200
SF Markus Elfring <address@hidden> wrote:
> A rough approximation for further discussion:
> 
> i_compilation?=echo
> o_compilation?=echo
> a_generation?=$(o_compilation) 'Checked modules: '
> 
> parsing_c.cma: ast_c.cmo token_annot.cmo
>       $(a_generation) '$<' > $@
> 
> %.cmi: %.mli
>       $(i_compilation) '$<' > $@
> 
> %.cmo: %.ml %.cmi
>       $(o_compilation) '$<' > $@
> 
> includes.cmi: ast_c.cmo
> 
> 
> address@hidden:~/Projekte/Coccinelle/20160205/parsing_c> LANG=C make
> --no-builtin-rules -f parsing-rule-check1.make make: *** No rule to make
> target 'ast_c.cmo', needed by 'parsing_c.cma'.  Stop.
> 
> 
> How do you think about such a test result?

I think that the test shows that even though you have a pattern rule that
could be applied to build ast_c.cmo that rule fails because ast_c.ml
and/or (ast_c.cmi or ast_c.mli) is missing. But that is only my guess. The
true cause could be found by running make -d.

I also think this might not be the right place to ask for support on how
to write Makefiles. This list is more intended to report found bugs in
make or suggest improvements.

regards Henrik



reply via email to

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