On 12/2/14 3:46 PM, Alvaro Herrera wrote:
> Ah, it needs errcodes.h to be generated. We can add this (or similar)
> to the makefiles:
>
> OBJS: | submake-errcodes
>
> submake-errcodes:
> $(MAKE) -C $(top_builddir)/src/backend submake-errcodes
>
> but it would be very repetitive to have it in all test modules'
> makefiles. Why doesn't contrib need this? Do you have a better idea?
The top-level GNUmakefile has a dependency to build src/ before contrib/.