回复:Generating prerequisites automatically - for C++20 modules

2022-08-16 Thread ljhm
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

Generating prerequisites automatically - for C++20 modules

2022-08-16 Thread ljh
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

Re: Generating Prerequisites Automatically

2003-01-23 Thread Johan Bezem
"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

Re: Generating Prerequisites Automatically

2003-01-23 Thread Peter A . Kerzum
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

Generating Prerequisites Automatically

2003-01-22 Thread Peter A . Kerzum
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