summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-02-04 09:28:06 -0500
committerRobert Haas <rhaas@postgresql.org>2011-02-04 09:29:10 -0500
commit356f2cbbb42811596820c94aaec2e32ad1ec58d8 (patch)
tree807f36eec03106dd756b752c65b67deb80f70793 /src/Makefile
parentafb6dee1e3b93af05e35873c19c068e8ac7eb74b (diff)
downloadpostgresql-356f2cbbb42811596820c94aaec2e32ad1ec58d8.tar.gz
Make handling of errcodes.h more consistent with other generated headers.
This fixes make distprep, and seems more robust in other ways as well. Some special handling is required because errcodes.txt is needed by some stuff in src/port, but just by src/backend as is the case for the other generated headers. While I'm at it, fix a few other things that were overlooked in the original patch.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Makefile b/src/Makefile
index a92153e783..4469d2cdf2 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -30,18 +30,6 @@ SUBDIRS = \
# don't attempt parallel make here.
.NOTPARALLEL:
-# generate errcodes.h before recursing in the subdirectories
-$(SUBDIRS:%=all-%-recurse): $(top_builddir)/src/include/utils/errcodes.h
-$(SUBDIRS:%=install-%-recurse): $(top_builddir)/src/include/utils/errcodes.h
-
-backend/utils/errcodes.h: backend/utils/generate-errcodes.pl $(top_srcdir)/src/backend/utils/errcodes.txt
- $(MAKE) -C backend/utils errcodes.h
-
-$(top_builddir)/src/include/utils/errcodes.h: backend/utils/errcodes.h
- prereqdir=`cd $(dir $<) >/dev/null && pwd` && \
- cd $(dir $@) && rm -f $(notdir $@) && \
- $(LN_S) "$$prereqdir/$(notdir $<)" .
-
$(recurse)
install: install-local