On Sun, 18 Jun 2017 19:45:34 +0200 SF Markus Elfring <elfr...@users.sourceforge.net> 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 > > > elfring@Sonne:~/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 _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make