sorry, just realized that this needs support from the compiler.
Jack
ljh@qq.com
---原始邮件---
发件人:ljh"
发送时间:"8/16/2022, 11:02:48 PM"
收件人:"bug-make"
主题:Generating prerequisites automatically - for C++20 modules
Hello list,
Can make provide an option
Hello list,
Can make provide an option to support C++20 modules, similar to the -MMD -MP
option for generating .d files for header files inclusion. So we don't have to
list the dependencies manually
main.o: x.o y.o z.o
x.o: y.o z.o
Thanks
"Peter A.Kerzum" wrote:
>...
> > Instead, I use a trick Paul Smith describes elsewhere, which is to create
> > the dependency files concurrently with compilation. That way, if the
>
> Please, point me to that trick. Am I reinventing the wheel ? =)
> And my purpose is to generate dependency file
Hi, Ted
Sorry, I sent this message directly to you, not to the list.
Yes, your are partialy right, my way has several problems, I've encountered
in a short time after submitting it to the list. All inluded makefiles share
.DEFAULT rule with each other and the master makefile, so multiple
'redefin
This is not really a bug in GNU make but an update to your the practice you
recommend for Generating Prerequisites Automatically in section 4.14 of GNU
make manual
Your recomendation is:
-- quote
Here is the pattern rule to generate a file of prerequisites (i.e., a