bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make does not build a missing prerequisite.


From: Maxim Yegorushkin
Subject: Re: Make does not build a missing prerequisite.
Date: Thu, 09 Oct 2014 16:49:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

On 09/10/14 11:31, Maxim Yegorushkin wrote:

[]

What happens is that make correctly identifies that data_access.cc
depends
on data_access.reflect.h, finds an implicit rule that generates
data_access.reflect.h, rebuilds the dependencies of
data_access.reflect.h
but neglects to build data_access.reflect.h itself.

[]

It turned out data_access.reflect.h was treated as an intermediate file and hence make did not want to create it. data_access.cc itself is considered an intermediate file.

The fix was to make data_access.o depend on data_access.reflect.h because data_access.o is not an intermediate file.

Maxim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]