44#
55# 'make install' installs whole contents of src/include.
66#
7- # $PostgreSQL: pgsql/src/include/Makefile,v 1.16 2004/11/03 07:38:08 neilc Exp $
7+ # $PostgreSQL: pgsql/src/include/Makefile,v 1.17 2004/11/09 06:23:50 neilc Exp $
88#
99# -------------------------------------------------------------------------
1010
@@ -21,7 +21,7 @@ SUBDIRS = access bootstrap catalog commands executor lib libpq mb \
2121nodes optimizer parser port regex rewrite storage tcop utils
2222
2323# Install all headers
24- install : all installdirs remove-old-headers
24+ install : all installdirs
2525# These headers are needed by the public headers of the interfaces.
2626$(INSTALL_DATA) $(srcdir)/postgres_ext.h $(DESTDIR)$(includedir)
2727$(INSTALL_DATA) $(srcdir)/libpq/libpq-fs.h $(DESTDIR)$(includedir)/libpq
@@ -50,24 +50,6 @@ installdirs:
5050$(mkinstalldirs ) $(addprefix $(DESTDIR )$(includedir_server ) /,$(SUBDIRS ) )
5151
5252
53- # Pre-7.1 Postgres installed some headers that are no longer installed by
54- # default. If we see these headers in the target directory, zap them to
55- # avoid cross-version compile problems. However, don't zap them if they
56- # match current sources (that means the user did install-all-headers).
57-
58- remove-old-headers :
59- for file in fmgr.h postgres.h access/attnum.h commands/trigger.h \
60- executor/spi.h utils/elog.h utils/geo_decls.h utils/mcxt.h\
61- utils/palloc.h; do \
62- if cmp -s$( srcdir) /$$ file$( DESTDIR) $( includedir) /$$ file2> /dev/null; \
63- then \
64- : ; \
65- else \
66- rm -f$(DESTDIR )$(includedir ) /$$ file; \
67- fi ; \
68- done
69-
70-
7153uninstall :
7254rm -f$(addprefix $(DESTDIR )$(includedir ) /, pg_config.h pg_config_os.h postgres_ext.h libpq/libpq-fs.h)
7355rm -f$(addprefix $(DESTDIR )$(includedir_internal ) /, c.h postgres_fe.h libpq/pqcomm.h)