1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-21 10:42:50 +03:00

Fix distprep and maintainer-clean targets so that ecpg's .def files are

made and removed at the correct times.
This commit is contained in:
Tom Lane
2007-10-05 01:51:40 +00:00
parent b8f41d508c
commit eefd10c66c
3 changed files with 31 additions and 9 deletions

View File

@@ -2,9 +2,10 @@
#
# Makefile for ecpg 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/ecpglib/Makefile,v 1.52 2007/10/04 20:54:08 tgl Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.53 2007/10/05 01:51:40 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -64,7 +65,10 @@ $(top_builddir)/src/port/pg_config_paths.h:
# 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)/libecpgdll.def $(srcdir)/blibecpgdll.def
$(srcdir)/libecpgdll.def: exports.txt
@@ -112,6 +116,9 @@ installdirs:
uninstall: uninstall-lib
clean distclean maintainer-clean: clean-lib
clean distclean: clean-lib
rm -f $(OBJS)
rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c exports.list
maintainer-clean: distclean
rm -f $(srcdir)/libecpgdll.def $(srcdir)/blibecpgdll.def