Accessing makefile from multiple makefiles at the same time

2019-03-14 Thread Tanya Smirnova
Hello, I have a question about running two makefiles that both include the same third makefile. The third, common, makefile generates a file – “outfile.h”. As an input it takes a path to the output directory, and input files from which to produce the generated output. Those two inputs are provid

Re: [PATCH] Implement "grouped targets" in ordinary rules.

2019-03-14 Thread Kaz Kylheku (gmake)
On 2019-03-13 05:28, Paul Smith wrote: And finally, please remember that any feature representing this much work needs to have copyright assignment papers completed to assign changes to the FSF. I see you have assignments for GNU libc; let me know if you need me to send you details about this.

Re: Accessing makefile from multiple makefiles at the same time

2019-03-14 Thread Tim Murphy
Hi, Rules are expanded just before they are executed so they get whatever variables are set at that time (which is after all the parsing has completed). It depends what command you are using (e..g if it only uses the automatic variables then you may get away with this) but if it references $(OUTP

Re: Accessing makefile from multiple makefiles at the same time

2019-03-14 Thread Tim Murphy
oops: $(OUT_FILE): OUTPUT_DIR=project1 On Fri, 15 Mar 2019 at 06:05, Tim Murphy wrote: > Hi, > > Rules are expanded just before they are executed so they get whatever > variables are set at that time (which is after all the parsing has > completed). > > It depends what command you are using (e.