From af3ce5daa4536fb015bced3642ba3d052df95b0f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 6 Jul 2001 23:07:20 +0000 Subject: Resolve a number of oddities in the Java build. First, remove the weird redirections between the build files, which didn't work completely. Now you just go to the directory of your choice and run make. Clean up the build files to have a logical order, fix the unnecessary rebuilds, prevent the deleting targets from removing files they're not responsible for. Ant 1.3 does not have a bug. It deletes directories just fine if you follow the documentation. --- src/interfaces/jdbc/Makefile | 28 +++---- src/interfaces/jdbc/build.xml | 187 ++++++++++++++++++++++++------------------ 2 files changed, 119 insertions(+), 96 deletions(-) (limited to 'src') diff --git a/src/interfaces/jdbc/Makefile b/src/interfaces/jdbc/Makefile index c40de4e0bc0..311645a6c65 100644 --- a/src/interfaces/jdbc/Makefile +++ b/src/interfaces/jdbc/Makefile @@ -1,10 +1,10 @@ #------------------------------------------------------------------------- # -# Makefile for src/interfaces +# Makefile for JDBC driver # -# Copyright (c) 1994, Regents of the University of California +# Copyright (c) 2001, PostgreSQL Global Development Group # -# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.32 2001/06/07 20:24:54 momjian Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.33 2001/07/06 23:07:20 petere Exp $ # #------------------------------------------------------------------------- @@ -20,22 +20,22 @@ properties := -Dmajor=$(majorversion) -Dminor=$(minorversion) \ -Ddef_pgport=$(DEF_PGPORT) all: - $(ANT) -buildfile $(top_srcdir)/build.xml $(properties) + $(ANT) -buildfile $(srcdir)/build.xml all \ + $(properties) install: installdirs - $(ANT) -Dinstall.directory=$(javadir) \ - -buildfile $(top_srcdir)/build.xml \ - install $(properties) + $(ANT) -buildfile $(srcdir)/build.xml install \ + -Dinstall.directory=$(javadir) $(properties) installdirs: - $(mkinstalldirs) $(DESTDIR)$(datadir)/java + $(mkinstalldirs) $(javadir) uninstall: - $(ANT) -Dinstall.directory=$(DESTDIR)$(datadir)/java \ - -buildfile $(top_srcdir)/build.xml \ - uninstall + $(ANT) -buildfile $(srcdir)/build.xml uninstall \ + -Dinstall.directory=$(javadir) clean distclean maintainer-clean: - $(ANT) -buildfile $(top_srcdir)/build.xml clean - # ANT 1.3 has a bug that prevents directory deletion - rm -rf build jars + $(ANT) -buildfile $(srcdir)/build.xml clean + +check: + $(ANT) -buildfile $(srcdir)/build.xml test diff --git a/src/interfaces/jdbc/build.xml b/src/interfaces/jdbc/build.xml index 9d70e2cbb8a..114d05813b0 100644 --- a/src/interfaces/jdbc/build.xml +++ b/src/interfaces/jdbc/build.xml @@ -1,31 +1,25 @@ + - + +]> + + - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -71,115 +115,94 @@ tofile="${package}/Driver.java" filtering="yes" /> - - + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - + - + + - - - - - - - - - - - + + + + + - + + - - - + - + + + + + + + + + + + + + + + + + + + + + + + - + + - + + -- cgit v1.2.3