This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix 'make' header dependency generation
authorDavid Mitchell <davem@iabyn.com>
Wed, 10 Sep 2014 13:10:06 +0000 (14:10 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 10 Sep 2014 13:10:06 +0000 (14:10 +0100)
commit1be0d08e5a9c1e6d52d56197d3bdcc2b919a8933
tree2df04247aa5641c8adde61f2a03a3fe0bdf93568
parentd6f85a58fb1c9ba755fae72f750f2968c3a0cd7f
fix 'make' header dependency generation

'make depend' was being run before build-time generated headers
were created (with generate_uudmap). This meant that the 'cc -E' which the
dependency analysis ran would fail for some source files, since it
couldn't find some of the headers. It would thus fail to find any further
dependencies for that file after that point.

In particular, globals.o wasn't being marked as dependent on opcode.h,
even though opcode.h contains the definitions of some global vars.

The fix is simple. Make the 'depend' target depend on $(generated_headers).
Makefile.SH