[petsc-dev] Experimental GNU make build system
Jed Brown
jedbrown at mcs.anl.gov
Thu May 23 14:04:58 CDT 2013
Satish Balay <balay at mcs.anl.gov> writes:
> On Thu, 23 May 2013, Jed Brown wrote:
>
>> Satish Balay <balay at mcs.anl.gov> writes:
>>
>> > Hm - that might mean all variants here - 'win32fe', 'ar' etc have to support the @cmdfile notation?
>>
>> FWIW, 'ar' does support @file. So if the problem is deeper, than may
>> still be a good option.
>
> Looks like win32fe isn't passing in @cmdfile option.
>
> BTW: one issue with @file option - If I remember correctly: there is
> some length limit to options listed here. [It prefers options split
> across multiple lines - rather than a single big line]. But perhaps
> gnumake's support of this feature takes care of that problem.
This looks funny, but will work:
$(file >$@.args,) # Truncate the file
$(foreach O, $^, $(file >> $@.args,$O)) # Append lines
More information about the petsc-dev
mailing list