xref: /aoo42x/main/scripting/java/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29PRJNAME=scripting
30TARGET=scriptruntimeforjava
31
32.INCLUDE : ant.mk
33
34.IF "$(L10N_framework)"==""
35.IF "$(SOLAR_JAVA)"!=""
36ALLTAR : ANTBUILD
37.ENDIF
38.ENDIF
39
40ALLTAR : \
41    $(MISC)/ScriptFramework.component \
42    $(MISC)/ScriptProviderForBeanShell.component \
43    $(MISC)/ScriptProviderForJava.component \
44    $(MISC)/ScriptProviderForJavaScript.component
45
46$(MISC)/ScriptFramework.component .ERRREMOVE : \
47        $(SOLARENV)/bin/createcomponent.xslt ScriptFramework.component
48    $(XSLTPROC) --nonet --stringparam uri \
49        '$(COMPONENTPREFIX_BASIS_JAVA)ScriptFramework.jar' -o $@ \
50        $(SOLARENV)/bin/createcomponent.xslt ScriptFramework.component
51
52$(MISC)/ScriptProviderForBeanShell.component .ERRREMOVE : \
53        $(SOLARENV)/bin/createcomponent.xslt \
54        ScriptProviderForBeanShell.component
55    $(XSLTPROC) --nonet --stringparam uri \
56        '$(COMPONENTPREFIX_BASIS_JAVA)ScriptProviderForBeanShell.jar' -o $@ \
57        $(SOLARENV)/bin/createcomponent.xslt \
58        ScriptProviderForBeanShell.component
59
60$(MISC)/ScriptProviderForJava.component .ERRREMOVE : \
61        $(SOLARENV)/bin/createcomponent.xslt ScriptProviderForJava.component
62    $(XSLTPROC) --nonet --stringparam uri \
63        '$(COMPONENTPREFIX_BASIS_JAVA)ScriptProviderForJava.jar' -o $@ \
64        $(SOLARENV)/bin/createcomponent.xslt ScriptProviderForJava.component
65
66$(MISC)/ScriptProviderForJavaScript.component .ERRREMOVE : \
67        $(SOLARENV)/bin/createcomponent.xslt \
68        ScriptProviderForJavaScript.component
69    $(XSLTPROC) --nonet --stringparam uri \
70        '$(COMPONENTPREFIX_BASIS_JAVA)ScriptProviderForJavaScript.jar' -o $@ \
71        $(SOLARENV)/bin/createcomponent.xslt \
72        ScriptProviderForJavaScript.component
73