Changeset: aded8207ba33 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/aded8207ba33
Added Files:
        Makefile
Removed Files:
        Makefile.ag
        tests/Makefile.ag
Branch: default
Log Message:

Created simple makefile for building jars using ant.


diffs (88 lines):

diff --git a/Makefile b/Makefile
new file mode 100644
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+all: src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java
+       ant -f build.xml distjdbc distmerocontrol
+       cd tests; ant -f build.xml jar_jdbctests
+
+src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java: build.properties 
src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java.in
+       source ./build.properties; sed -e 
"s/@MCL_MAJOR@/$$MCL_MAJOR/g;s/@MCL_MINOR@/$$MCL_MINOR/g;s/@JDBC_MAJOR@/$$JDBC_MAJOR/g;s/@JDBC_MINOR@/$$JDBC_MINOR/g;s/@JDBC_VER_SUFFIX@/$$JDBC_VER_SUFFIX
 $$buildno/g;s/@JDBC_DEF_PORT@/$$JDBC_DEF_PORT/g" 
src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java.in > 
src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java
+
+clean:
+       rm -f src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java
+       rm -rf build tests/build jars
diff --git a/Makefile.ag b/Makefile.ag
deleted file mode 100644
--- a/Makefile.ag
+++ /dev/null
@@ -1,28 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# Copyright 1997 - July 2008 CWI, August 2008 - 2016 MonetDB B.V.
-
-SUBDIRS = HAVE_JAVAJDBC?tests
-
-EXTRA_DIST = build.xml build.properties release.txt
-
-EXTRA_DIST_DIR = src \
-                example
-
-JAVA_HOME = @JAVA_HOME@
-
-ant_distjdbc = {
-       COND = HAVE_JAVAJDBC
-       DIR = datadir/monetdb/lib
-       FILES = monetdb-mcl-1.13.jar monetdb-jdbc-2.23.jar jdbcclient.jar
-}
-
-ant_distmerocontrol = {
-       COND = HAVE_JAVAMEROCONTROL
-       DIR = datadir/monetdb/lib
-       FILES = merocontrol.jar
-}
-
-# vim: ft=automake :
diff --git a/tests/Makefile.ag b/tests/Makefile.ag
deleted file mode 100644
--- a/tests/Makefile.ag
+++ /dev/null
@@ -1,35 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# Copyright 1997 - July 2008 CWI, August 2008 - 2016 MonetDB B.V.
-
-EXTRA_DIST = \
-               Test_Cautocommit.java \
-               Test_Clargequery.java \
-               Test_Cmanycon.java \
-               Test_Creplysize.java \
-               Test_Csavepoints.java \
-               Test_Ctransaction.java \
-               Test_Dobjects.java \
-               Test_PSgeneratedkeys.java \
-               Test_PSlargeresponse.java \
-               Test_PSlargeamount.java \
-               Test_PStimedate.java \
-               Test_PStimezone.java \
-               Test_PStypes.java \
-               Test_Rbooleans.java \
-               Test_Rmetadata.java \
-               Test_Rpositioning.java \
-               Test_Rtimedate.java \
-               Test_Sbatching.java \
-               Test_Int128.java \
-               BugConcurrent_clients_SF_1504657.java \
-               BugDatabaseMetaData_Bug_3356.java \
-               BugDecimalRound_Bug_3561.java \
-               build.xml build.properties
-
-ant_jar_jdbctests = {
-       DIR = datadir/monetdb/lib
-       FILES = jdbctests.jar
-}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to