diff options
Diffstat (limited to 'src/interfaces/jdbc/Makefile')
-rw-r--r-- | src/interfaces/jdbc/Makefile | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/interfaces/jdbc/Makefile b/src/interfaces/jdbc/Makefile index 3fbafe54ce8..3e41fc9eb84 100644 --- a/src/interfaces/jdbc/Makefile +++ b/src/interfaces/jdbc/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 2001, PostgreSQL Global Development Group # -# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.36 2002/10/20 02:55:50 barry Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.37 2002/12/11 12:27:47 davec Exp $ # #------------------------------------------------------------------------- @@ -12,21 +12,23 @@ subdir = src/interfaces/jdbc top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -majorversion := $(shell echo $(VERSION) | sed 's/^\([0-9][0-9]*\)\..*$$/\1/') -minorversion := $(shell echo $(VERSION) | sed 's/^[0-9][0-9]*\.\([0-9][0-9]*\).*$$/\1/') +majorversion:= $(shell echo $(VERSION) | sed 's/^\([0-9][0-9]*\)\..*$$/\1/') +minorversion:= $(shell echo $(VERSION) | sed 's/^[0-9][0-9]*\.\([0-9][0-9]*\).*$$/\1/') -properties := -Dmajor=$(majorversion) -Dminor=$(minorversion) \ - -Dfullversion=$(VERSION) \ - -Ddef_pgport=$(DEF_PGPORT) \ - -Denable_debug=$(enable_debug) +build.properties: $(top_builddir)/src/Makefile.global + echo "# This file was created by 'make build.properties'." > build.properties + echo major=$(majorversion) >> build.properties + echo minor=$(minorversion) >> build.properties + echo fullversion=$(VERSION) >> build.properties + echo def_pgport=$(DEF_PGPORT) >> build.properties + echo enable_debug=$(enable_debug) >> build.properties -all: - $(ANT) -buildfile $(srcdir)/build.xml all \ - $(properties) +all: build.properties + $(ANT) -buildfile $(srcdir)/build.xml all -install: installdirs +install: installdirs build.properties $(ANT) -buildfile $(srcdir)/build.xml install \ - -Dinstall.directory=$(javadir) $(properties) + -Dinstall.directory=$(javadir) installdirs: $(mkinstalldirs) $(javadir) @@ -36,7 +38,7 @@ uninstall: -Dinstall.directory=$(javadir) clean distclean maintainer-clean: - $(ANT) -buildfile $(srcdir)/build.xml clean + $(ANT) -buildfile $(srcdir)/build.xml clean_all -check: all - $(ANT) -buildfile $(srcdir)/build.xml test $(properties) +check: build.properties + $(ANT) -buildfile $(srcdir)/build.xml test |