summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib/Makefile
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-10-05 01:51:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-10-05 01:51:40 +0000
commiteefd10c66c5132521366ca1b48e3e3eafbf91d8b (patch)
treecf22c624f4d67b44e0b9df5b305de2034dfca70a /src/interfaces/ecpg/compatlib/Makefile
parentb8f41d508cc52b9f264bb026465eedac1efa2f64 (diff)
downloadpostgresql-eefd10c66c5132521366ca1b48e3e3eafbf91d8b.tar.gz
Fix distprep and maintainer-clean targets so that ecpg's .def files are
made and removed at the correct times.
Diffstat (limited to 'src/interfaces/ecpg/compatlib/Makefile')
-rw-r--r--src/interfaces/ecpg/compatlib/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile
index 47b2eabc22..d6e8ba54cb 100644
--- a/src/interfaces/ecpg/compatlib/Makefile
+++ b/src/interfaces/ecpg/compatlib/Makefile
@@ -2,9 +2,10 @@
#
# Makefile for ecpg compatibility library
#
-# Copyright (c) 1994, Regents of the University of California
+# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
+# Portions Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.35 2007/10/04 18:32:07 tgl Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.36 2007/10/05 01:51:40 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -46,8 +47,12 @@ snprintf.c: % : $(top_srcdir)/src/port/%
# Since we can't assume that Windows boxes will have sed, the .DEF files are
# always built and included in distribution tarballs.
+distprep: def-files
+
.PHONY: def-files
+
def-files: $(srcdir)/libecpg_compatdll.def $(srcdir)/blibecpg_compatdll.def
+
$(srcdir)/libecpg_compatdll.def: exports.txt
echo '; DEF file for MS VC++' > $@
echo 'LIBRARY LIBECPG_COMPAT' >> $@
@@ -93,5 +98,8 @@ installdirs:
uninstall: uninstall-lib
-clean distclean maintainer-clean: clean-lib
+clean distclean: clean-lib
rm -f $(OBJS) snprintf.c exports.list
+
+maintainer-clean: distclean
+ rm -f $(srcdir)/libecpg_compatdll.def $(srcdir)/blibecpg_compatdll.def