44#
55# Copyright (c) 2001, PostgreSQL Global Development Group
66#
7- # $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.36 2002/10/20 02:55:50 barry Exp $
7+ # $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.37 2002/12/11 12:27:47 davec Exp $
88#
99# -------------------------------------------------------------------------
1010
1111subdir = src/interfaces/jdbc
1212top_builddir = ../../..
1313include $(top_builddir ) /src/Makefile.global
1414
15- majorversion := $(shell echo $(VERSION ) | sed 's/^\([0-9][0-9]* \) \..*$$/\1/')
16- minorversion := $(shell echo $(VERSION ) | sed 's/^[0-9][0-9]* \.\([0-9][0-9]* \) .*$$/\1/')
15+ majorversion: = $(shell echo $(VERSION ) | sed 's/^\([0-9][0-9]* \) \..*$$/\1/')
16+ minorversion: = $(shell echo $(VERSION ) | sed 's/^[0-9][0-9]* \.\([0-9][0-9]* \) .*$$/\1/')
1717
18- properties := -Dmajor=$(majorversion ) -Dminor=$(minorversion ) \
19- -Dfullversion=$(VERSION ) \
20- -Ddef_pgport=$(DEF_PGPORT ) \
21- -Denable_debug=$(enable_debug )
18+ build.properties : $(top_builddir ) /src/Makefile.global
19+ echo " # This file was created by 'make build.properties'." > build.properties
20+ echo major=$(majorversion ) >> build.properties
21+ echo minor=$(minorversion ) >> build.properties
22+ echo fullversion=$(VERSION ) >> build.properties
23+ echo def_pgport=$(DEF_PGPORT ) >> build.properties
24+ echo enable_debug=$(enable_debug ) >> build.properties
2225
23- all :
24- $(ANT ) -buildfile $(srcdir ) /build.xml all \
25- $(properties )
26+ all : build.properties
27+ $(ANT ) -buildfile $(srcdir ) /build.xml all
2628
27- install : installdirs
29+ install : installdirs build.properties
2830 $(ANT ) -buildfile $(srcdir ) /build.xml install \
29- -Dinstall.directory=$(javadir ) $( properties )
31+ -Dinstall.directory=$(javadir )
3032
3133installdirs :
3234 $(mkinstalldirs ) $(javadir )
@@ -36,7 +38,7 @@ uninstall:
3638 -Dinstall.directory=$(javadir )
3739
3840clean distclean maintainer-clean :
39- $(ANT ) -buildfile $(srcdir ) /build.xml clean
41+ $(ANT ) -buildfile $(srcdir ) /build.xml clean_all
4042
41- check : all
42- $(ANT ) -buildfile $(srcdir ) /build.xml test $( properties )
43+ check : build.properties
44+ $(ANT ) -buildfile $(srcdir ) /build.xml test
0 commit comments