Update ooo320-m1
[ooovba.git] / solenv / inc / ant.mk
blob176a00e62c33a13288210da41351dc2b79bfa8bc
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: ant.mk,v $
11 # $Revision: 1.36 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 # --- Force JDK14 switch ------------------------------------------
34 .IF "$(USE_JDK_VERSION)" == "140"
35 JDK_VERSION=140
36 JAVA_HOME=$(JDK14PATH)
38 PATH!:=$(JDK14PATH)/bin$(PATH_SEPERATOR)$(PATH)
39 XCLASSPATH:=$(JDK14PATH)/jre/lib/rt.jar
40 CLASSPATH:=$(XCLASSPATH)
41 .ENDIF
43 # --- Settings -----------------------------------------------------
45 .INCLUDE : settings.mk
48 # --- ANT build environment ---------------------------------------
50 .INCLUDE : antsettings.mk
52 .INCLUDE : target.mk
54 CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(JAVA_HOME)/lib/tools.jar
55 .EXPORT : CLASSPATH
56 .EXPORT : PATH
58 # --- TARGETS -----------------------------------------------------
60 $(CLASSDIR)/solar.properties : $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/minormkchanged.flg $(SOLARENV)/inc/ant.properties
61 @echo "Making: " $@
62 @echo solar.build=$(BUILD) > $@
63 @echo solar.rscversion=$(USQ)$(RSCVERSION)$(USQ) >> $@
64 @echo solar.rscrevision=$(USQ)$(RSCREVISION)$(USQ) >> $@
65 @echo solar.minor=$(LAST_MINOR) >> $@
66 @echo solar.sourceversion=$(SOURCEVERSION) >> $@
67 @echo solar.udkstamp=$(UDKSTAMP) >> $@
68 @echo solar.extstamp=$(EXTSTAMP) >> $@
69 @cat $(DMAKEROOT)/../ant.properties >> $@
71 ANTBUILD .PHONY:
72 $(ANT) $(ANT_FLAGS)
74 clean .PHONY:
75 $(ANT) $(ANT_FLAGS) $@
77 prepare .PHONY:
78 $(ANT) $(ANT_FLAGS) $@
80 main: .PHONY:
81 $(ANT) $(ANT_FLAGS) $@
83 info: .PHONY
84 $(ANT) $(ANT_FLAGS) $@
86 jar .PHONY:
87 $(ANT) $(ANT_FLAGS) $@
89 compile .PHONY:
90 $(ANT) $(ANT_FLAGS) $@
92 depend .PHONY:
93 $(ANT) $(ANT_FLAGS) $@
95 javadoc .PHONY:
96 $(ANT) $(ANT_FLAGS) $@
98 config .PHONY:
99 $(ANT) $(ANT_FLAGS) $@
101 test .PHONY:
102 $(ANT) $(ANT_FLAGS) $@