From f5ef59cf9c57fa59505129e7a61989ba67aeb9f6 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Tue, 9 Nov 2004 06:23:50 +0000 Subject: [PATCH] Delete the `remove-old-headers' target, as it is no longer useful. Patch from Alvaro Herrera. --- src/include/Makefile | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/include/Makefile b/src/include/Makefile index f7bb42093d..5271017d7d 100644 --- a/src/include/Makefile +++ b/src/include/Makefile @@ -4,7 +4,7 @@ # # 'make install' installs whole contents of src/include. # -# $PostgreSQL: pgsql/src/include/Makefile,v 1.16 2004/11/03 07:38:08 neilc Exp $ +# $PostgreSQL: pgsql/src/include/Makefile,v 1.17 2004/11/09 06:23:50 neilc Exp $ # #------------------------------------------------------------------------- @@ -21,7 +21,7 @@ SUBDIRS = access bootstrap catalog commands executor lib libpq mb \ nodes optimizer parser port regex rewrite storage tcop utils # Install all headers -install: all installdirs remove-old-headers +install: all installdirs # These headers are needed by the public headers of the interfaces. $(INSTALL_DATA) $(srcdir)/postgres_ext.h $(DESTDIR)$(includedir) $(INSTALL_DATA) $(srcdir)/libpq/libpq-fs.h $(DESTDIR)$(includedir)/libpq @@ -50,24 +50,6 @@ installdirs: $(mkinstalldirs) $(addprefix $(DESTDIR)$(includedir_server)/, $(SUBDIRS)) -# Pre-7.1 Postgres installed some headers that are no longer installed by -# default. If we see these headers in the target directory, zap them to -# avoid cross-version compile problems. However, don't zap them if they -# match current sources (that means the user did install-all-headers). - -remove-old-headers: - for file in fmgr.h postgres.h access/attnum.h commands/trigger.h \ - executor/spi.h utils/elog.h utils/geo_decls.h utils/mcxt.h \ - utils/palloc.h; do \ - if cmp -s $(srcdir)/$$file $(DESTDIR)$(includedir)/$$file 2>/dev/null; \ - then \ - : ; \ - else \ - rm -f $(DESTDIR)$(includedir)/$$file; \ - fi ; \ - done - - uninstall: rm -f $(addprefix $(DESTDIR)$(includedir)/, pg_config.h pg_config_os.h postgres_ext.h libpq/libpq-fs.h) rm -f $(addprefix $(DESTDIR)$(includedir_internal)/, c.h postgres_fe.h libpq/pqcomm.h) -- 2.40.0