diff --git a/src/interfaces/ecpg/lib/Makefile.in b/src/interfaces/ecpg/lib/Makefile.in
index ef2373fa78e49fd5aa40661e243451d50afd815c..c7b4c80e06e57093483ff5b65dbe787888c1600b 100644
--- a/src/interfaces/ecpg/lib/Makefile.in
+++ b/src/interfaces/ecpg/lib/Makefile.in
@@ -6,7 +6,7 @@
 # Copyright (c) 1994, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.43 1999/02/23 12:56:55 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.44 1999/06/30 23:57:23 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -41,8 +41,9 @@ typename.o : typename.c ../include/ecpgtype.h
 
 
 .PHONY: clean
-clean:
-	rm -f lib$(NAME).a $(shlib) $(OBJS)
+
+clean: clean-shlib
+	rm -f lib$(NAME).a $(OBJS)
 ifeq ($(PORTNAME), win)
 	rm -f $(NAME).def
 endif
diff --git a/src/interfaces/libpgtcl/Makefile.in b/src/interfaces/libpgtcl/Makefile.in
index e58b4719ae5479f18be96bd1e30a1b37d362bc2f..1912c1198caa347b25a1e10846802731710623a0 100644
--- a/src/interfaces/libpgtcl/Makefile.in
+++ b/src/interfaces/libpgtcl/Makefile.in
@@ -6,7 +6,7 @@
 # Copyright (c) 1994, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.34 1999/02/07 22:10:45 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.35 1999/06/30 23:57:24 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -50,8 +50,9 @@ beforeinstall-headers:
 
 
 .PHONY: clean
-clean: 
-	rm -f $(OBJS) $(shlib) lib$(NAME).a
+
+clean: clean-shlib
+	rm -f $(OBJS) lib$(NAME).a
 
 depend dep:
 	$(CC) -MM $(CFLAGS) *.c >depend
diff --git a/src/interfaces/libpq++/Makefile.in b/src/interfaces/libpq++/Makefile.in
index f661d9bf6d104a4d78c881c374accabbc1cdd053..1ad5c3017ac40c1f2f7e4ad550112d1add2440e0 100644
--- a/src/interfaces/libpq++/Makefile.in
+++ b/src/interfaces/libpq++/Makefile.in
@@ -6,7 +6,7 @@
 # Copyright (c) 1994, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.14 1999/05/27 14:28:40 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.15 1999/06/30 23:57:27 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -87,8 +87,9 @@ beforeinstall-headers:
 	@if [ ! -d $(LIBPGXXHEADERDIR) ]; then mkdir $(LIBPGXXHEADERDIR); fi
 
 .PHONY: clean
-clean:
-	rm -f libpq++.a $(shlib) $(OBJS)
+
+clean: clean-shlib
+	rm -f libpq++.a $(OBJS)
 	$(MAKE) -C examples clean
 
 dep depend:
diff --git a/src/interfaces/libpq/Makefile.in b/src/interfaces/libpq/Makefile.in
index 8b07a9396a7db969c8a0ee7bd7f8abf3ab970e41..73f333cae12e1ee29cf2e35218c731b4dd083b52 100644
--- a/src/interfaces/libpq/Makefile.in
+++ b/src/interfaces/libpq/Makefile.in
@@ -6,7 +6,7 @@
 # Copyright (c) 1994, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.45 1999/03/07 23:05:57 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.46 1999/06/30 23:57:25 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -83,8 +83,9 @@ install-headers: libpq-fe.h libpq-int.h
 
 
 .PHONY: clean
-clean:
-	rm -f libpq.a $(shlib) $(OBJS)
+
+clean: clean-shlib
+	rm -f libpq.a $(OBJS)
 	rm -f dllist.c common.c wchar.c conv.c big5.c
 ifeq ($(PORTNAME), win)
 	rm -f pq.def
diff --git a/src/interfaces/odbc/GNUmakefile.in b/src/interfaces/odbc/GNUmakefile.in
index 0835bd53b5a720cfe3bbbee34726c3be4b76064c..79883ab79fe7a84920f307e35698f232d4d5ff80 100644
--- a/src/interfaces/odbc/GNUmakefile.in
+++ b/src/interfaces/odbc/GNUmakefile.in
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile.in,v 1.10 1999/01/17 06:19:43 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile.in,v 1.11 1999/06/30 23:57:29 tgl Exp $
 #
 #-------------------------------------------------------------------------
 @SET_MAKE@
@@ -65,8 +65,8 @@ install-ini: odbcinst.ini
 
 .PHONY: clean
 
-clean:
-	-rm -f lib$(NAME).a $(shlib) $(OBJS)
+clean: clean-shlib
+	-rm -f lib$(NAME).a $(OBJS)
 
 .PHONY: distclean
 
@@ -76,7 +76,7 @@ distclean: clean
 ifeq ($(PORTNAME), win)
 	@if [ $SRCDIR != $ODBCSRCDIR ]; then rm -f template makefiles port; fi
 else
-	@if [ $SRCDIR ne $ODBCSRCDIR ]; then rm -f template makefiles port
+	@if [ $SRCDIR ne $ODBCSRCDIR ]; then rm -f template makefiles port; fi
 endif
 
 .PHONY: standalone
diff --git a/src/pl/plpgsql/src/Makefile.in b/src/pl/plpgsql/src/Makefile.in
index 9178399f44b168d1bcf06aed4965e12f65ed9663..c69fdb7af6947452bc13e063d70bbe88655f3b17 100644
--- a/src/pl/plpgsql/src/Makefile.in
+++ b/src/pl/plpgsql/src/Makefile.in
@@ -4,7 +4,7 @@
 #    Makefile for the plpgsql shared object
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.16 1999/03/21 02:27:46 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.17 1999/06/30 23:57:31 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -77,8 +77,8 @@ pl_scan.c:	scan.l
 
 .PHONY: install clean
 
-clean:
-	rm -f lib$(NAME).a $(shlib)
+clean: clean-shlib
+	rm -f lib$(NAME).a
 	rm -f *.o pl.tab.h pl_gram.c pl_scan.c
 # And the garbage that might have been left behind by partial build:
 	rm -f y.tab.c y.tab.h lex.yy.c