mirror of https://github.com/postgres/postgres
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.REL7_2_STABLE
parent
55432fedd2
commit
af3ce5daa4
@ -1,101 +0,0 @@ |
||||
<!-- |
||||
|
||||
build file to allow ant (http://jakarta.apache.org/ant/) to be used |
||||
to build the PostgreSQL JDBC Driver and any associated java utilities under |
||||
/contrib. |
||||
|
||||
This is placed here for three reasons: |
||||
|
||||
1: You only need to run ANT once to get everything. |
||||
2: To let people know that there are more java sources under /contrib. |
||||
3: In the next release (after 7.1) it's intended to have configure to |
||||
detect the presence of both the JDK and ANT, and if both are found |
||||
to build the jdbc driver and utils with the rest of postgresql. |
||||
|
||||
$Id: build.xml,v 1.3 2001/03/11 11:06:59 petere Exp $ |
||||
|
||||
--> |
||||
|
||||
<project name="postgresql" default="jar" basedir="."> |
||||
|
||||
<!-- |
||||
This is the normal entry point. It builds first the |
||||
jdbc driver, then the extra tools. |
||||
--> |
||||
<target name="jar"> |
||||
<antcall target="call"> |
||||
<param name="target" value="jar" /> |
||||
</antcall> |
||||
</target> |
||||
|
||||
<!-- |
||||
This entry point clears the source tree. Call this when you want |
||||
to build a clean install. |
||||
--> |
||||
<target name="clean"> |
||||
<antcall target="call"> |
||||
<param name="target" value="clean" /> |
||||
</antcall> |
||||
</target> |
||||
|
||||
<!-- |
||||
This entry point installs the .jar files into an install directory. |
||||
|
||||
To use this, call ant as follows: |
||||
|
||||
ant -Dinstall.directory=mydir install |
||||
|
||||
Where mydir is the _Absolute_ path of the directory to create. |
||||
|
||||
|
||||
If the directory mydir does not exist it will be created. |
||||
|
||||
If the directory is not absolute then the install will fail by |
||||
creating subdirectories in the build path. Be careful. |
||||
|
||||
|
||||
This is intended for "make install" to call it. |
||||
|
||||
e.g. |
||||
Windows: ant -Dc:\jars install |
||||
Unix: ant -Dinstall.directory=/usr/local/lib/jars install |
||||
Cygwin: ant -Dinstall.directory=$(cygpath -w /usr/local/lib/jars) install |
||||
|
||||
--> |
||||
<target name="install" if="install.directory"> |
||||
<mkdir dir="${install.directory}" /> |
||||
<antcall target="call"> |
||||
<param name="target" value="install" /> |
||||
</antcall> |
||||
</target> |
||||
|
||||
<target name="uninstall" if="install.directory"> |
||||
<antcall target="call"> |
||||
<param name="target" value="uninstall" /> |
||||
</antcall> |
||||
</target> |
||||
|
||||
<!-- |
||||
This actually calls the other two build.xml files. |
||||
To use it, use the <antcall> tag, and pass the destination target |
||||
within a <param> tag using name="target". |
||||
|
||||
ie: |
||||
|
||||
<antcall target="call"> |
||||
<param name="target" value="mytarget" /> |
||||
</antcall> |
||||
|
||||
Here, the target mytarget will be called from all the sub build.xml |
||||
files. |
||||
|
||||
Note: The target must be present in _ALL_ build.xml files otherwise |
||||
the build will fail. |
||||
--> |
||||
<target name="call"> |
||||
<ant dir="src/interfaces/jdbc" target="${target}" /> |
||||
<ant dir="contrib/retep" target="${target}" /> |
||||
</target> |
||||
|
||||
</project> |
||||
|
@ -0,0 +1,30 @@ |
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile for contributed retep tools
|
||||
#
|
||||
# Copyright (c) 2001, PostgreSQL Global Development Group
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/contrib/retep/Attic/Makefile,v 1.1 2001/07/06 23:07:20 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
subdir = contrib/retep
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global |
||||
|
||||
all: |
||||
$(ANT) -buildfile $(srcdir)/build.xml all
|
||||
|
||||
install: installdirs |
||||
$(ANT) -buildfile $(srcdir)/build.xml install \
|
||||
-Dinstall.directory=$(javadir)
|
||||
|
||||
installdirs: |
||||
$(mkinstalldirs) $(javadir)
|
||||
|
||||
uninstall: |
||||
$(ANT) -buildfile $(srcdir)/build.xml uninstall \
|
||||
-Dinstall.directory=$(javadir)
|
||||
|
||||
clean distclean maintainer-clean: |
||||
$(ANT) -buildfile $(srcdir)/build.xml clean
|
Loading…
Reference in new issue