This is the mail archive of the
mailing list for the GCC project.
Re: preprocessor/6521: -MG creates dependency with wrong path
>>>>> "Zack" == Zack Weinberg <firstname.lastname@example.org> writes:
Zack> Come to think of it, -MG and -MP clash. We should mark entries
Zack> added to the list by -MG and not generate phony targets for them
Zack> under -MP, or Make will pitch a fit about multiple rules for the
Zack> same target.
It is ok to have multiple targets of the form `foo.h:', with no
attached rule. In fact this is required for -MP to really work; in a
given project many files will include any given header, and so it will
appear in several make `include' files.