@ -114,13 +114,16 @@ endif
e n d i f # aix
# Update the commonly used headers before building the subdirectories
$(SUBDIRS : %=%-recursive ): $( top_builddir ) /src /include /parser /gram .h $( top_builddir ) /src /include /catalog /schemapg .h $( top_builddir ) /src /include /utils /fmgroids .h $( top_builddir ) /src /include /utils /probes .h
$(SUBDIRS : %=%-recursive ): $( top_builddir ) /src /include /parser /gram .h $( top_builddir ) /src /include /catalog /schemapg .h $( top_builddir ) /src /include /utils /fmgroids .h $( top_builddir ) /src /include /utils /errcodes .h $( top_builddir ) /src /include /utils /probes .h
# run this unconditionally to avoid needing to know its dependencies here:
submake-schemapg :
$( MAKE) -C catalog schemapg.h
.PHONY : submake -schemapg
# src/port needs a convenient way to force errcodes.h to get built
submake-errcodes : $( top_builddir ) /src /include /utils /errcodes .h
.PHONY : submake -schemapg submake -errcodes
catalog/schemapg.h : | submake -schemapg
@ -143,6 +146,9 @@ parser/gram.h: parser/gram.y
utils/fmgroids.h : utils /Gen_fmgrtab .pl catalog /Catalog .pm $( top_srcdir ) /src /include /catalog /pg_proc .h
$( MAKE) -C utils fmgroids.h
utils/errcodes.h : utils /generate -errcodes .pl utils /errcodes .txt
$( MAKE) -C utils errcodes.h
utils/probes.h : utils /probes .d
$( MAKE) -C utils probes.h
@ -167,6 +173,10 @@ $(top_builddir)/src/include/catalog/schemapg.h: catalog/schemapg.h
cd $( dir $@ ) && rm -f $( notdir $@ ) && \
$( LN_S) " $$ prereqdir/ $( notdir $<) " .
$(top_builddir)/src/include/utils/errcodes.h : utils /errcodes .h
cd $( dir $@ ) && rm -f $( notdir $@ ) && \
$( LN_S) ../../../$( subdir) /utils/errcodes.h .
$(top_builddir)/src/include/utils/fmgroids.h : utils /fmgroids .h
prereqdir = ` cd $( dir $<) >/dev/null && pwd ` && \
cd $( dir $@ ) && rm -f $( notdir $@ ) && \
@ -187,7 +197,7 @@ distprep:
$( MAKE) -C parser gram.c gram.h scan.c
$( MAKE) -C bootstrap bootparse.c bootscanner.c
$( MAKE) -C catalog schemapg.h postgres.bki postgres.description postgres.shdescription
$( MAKE) -C utils fmgrtab.c fmgroids.h
$( MAKE) -C utils fmgrtab.c fmgroids.h errcodes.h
$( MAKE) -C utils/misc guc-file.c