[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replacing suffix rules in make scripts?
From: |
SF Markus Elfring |
Subject: |
Re: Replacing suffix rules in make scripts? |
Date: |
Fri, 23 Jun 2017 17:50:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
> The OCaml makefile specifies an order in which the files should be
> compiled in the project. If you are sidestepping that ordering, then you
> are not doing things in the intended manner.
I hope that some details were clarified to some degree in the meantime.
> There is only an intent to support running make or make opt in the
> subdirectories or at the root. Perhaps Thierry will put a new make file
> that has some other properties (I don't know which ones) in the future.
> But there is no intent to support anything else at the moment.
I suggest to take also another look around the discussed build scripts.
Example:
https://github.com/coccinelle/coccinelle/blob/cd539cd12ad0674d5a8f4c33f6c21ae00aec8e57/globals/Makefile#L50
Now I wonder about the following test result for my current “developer rules”.
address@hidden:~/Projekte/Coccinelle/20160205/globals> make clean && LANG=C
make --no-builtin-rules V=1 && make clean && LANG=C make --no-builtin-rules -j4
V=1
rm -f …
/usr/bin/ocamldep -I ../commons -I
/home/elfring/Projekte/Coccinelle/20160205/bundles/pcre/ *.mli *.ml > .depend
…
/usr/bin/ocamlc.opt -unsafe -I ../commons -I
/home/elfring/Projekte/Coccinelle/20160205/bundles/pcre/ -c flag.ml
…
/usr/bin/ocamlc.opt -unsafe -I ../commons -I
/home/elfring/Projekte/Coccinelle/20160205/bundles/pcre/ -a -o globals.cma
config.cmo flag.cmo regexp_pcre.cmo regexp.cmo iteration.cmo
rm -f …
/usr/bin/ocamldep -I ../commons -I
/home/elfring/Projekte/Coccinelle/20160205/bundles/pcre/ *.mli *.ml > .depend
…
/usr/bin/ocamlc.opt -unsafe -I ../commons -I
/home/elfring/Projekte/Coccinelle/20160205/bundles/pcre/ -c flag.ml
…
/usr/bin/ocamlc.opt -unsafe -I ../commons -I
/home/elfring/Projekte/Coccinelle/20160205/bundles/pcre/ -c iteration.mli
make: *** No rule to make target 'flag.cmi', needed by 'iteration.cmo'. Stop.
…
Why do I get such an error message for a parallel software build attempt
when the specified dependencies worked as expected for the non-parallel
build try before?
Do you get any more ideas on how to explain such a test surprise?
Regards,
Markus
- Re: Replacing suffix rules in make scripts?,
SF Markus Elfring <=