mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
Get rid of the need for manual maintenance of the initial contents of
pg_attribute, by having genbki.pl derive the information from the various catalog header files. This greatly simplifies modification of the "bootstrapped" catalogs. This patch finally kills genbki.sh and Gen_fmgrtab.sh; we now rely entirely on Perl scripts for those build steps. To avoid creating a Perl build dependency where there was not one before, the output files generated by these scripts are now treated as distprep targets, ie, they will be built and shipped in tarballs. But you will need a reasonably modern Perl (probably at least 5.6) if you want to build from a CVS pull. The changes to the MSVC build process are untested, and may well break --- we'll soon find out from the buildfarm. John Naylor, based on ideas from Robert Haas and others
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile for utils
|
||||
#
|
||||
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.28 2008/08/01 13:16:09 alvherre Exp $
|
||||
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.29 2010/01/05 01:06:56 tgl Exp $
|
||||
#
|
||||
|
||||
subdir = src/backend/utils
|
||||
@@ -11,14 +11,20 @@ include $(top_builddir)/src/Makefile.global
|
||||
OBJS = fmgrtab.o
|
||||
SUBDIRS = adt cache error fmgr hash init mb misc mmgr resowner sort time
|
||||
|
||||
# location of Catalog.pm
|
||||
catalogdir = $(top_srcdir)/src/backend/catalog
|
||||
|
||||
include $(top_srcdir)/src/backend/common.mk
|
||||
|
||||
all: fmgroids.h probes.h
|
||||
|
||||
$(SUBDIRS:%=%-recursive): fmgroids.h
|
||||
|
||||
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h
|
||||
AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
|
||||
# see explanation in ../parser/Makefile
|
||||
fmgroids.h: fmgrtab.c ;
|
||||
|
||||
fmgrtab.c: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.h
|
||||
$(PERL) -I $(catalogdir) $< $(top_srcdir)/src/include/catalog/pg_proc.h
|
||||
|
||||
ifneq ($(enable_dtrace), yes)
|
||||
probes.h: Gen_dummy_probes.sed
|
||||
@@ -34,5 +40,10 @@ else
|
||||
endif
|
||||
|
||||
|
||||
# fmgroids.h and fmgrtab.c are in the distribution tarball, so they
|
||||
# are not cleaned here.
|
||||
clean:
|
||||
rm -f fmgroids.h fmgrtab.c probes.h
|
||||
rm -f probes.h
|
||||
|
||||
maintainer-clean: clean
|
||||
rm -f fmgroids.h fmgrtab.c
|
||||
|
||||
Reference in New Issue
Block a user