1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ     = ../../../../..
25PRJNAME = smoketestdoc
26PACKAGE = com/sun/star/comp/smoketest
27TARGET  = com_sun_star_comp_smoketest
28
29no_common_build_zip:=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.IF "$(SOLAR_JAVA)" != ""
34
35.INCLUDE : settings.mk
36
37JARFILES = ridl.jar jurt.jar unoil.jar juh.jar
38
39JARTARGET          = TestExtension.jar
40JARCOMPRESS        = TRUE
41CUSTOMMANIFESTFILE = MANIFEST.MF
42
43ZIP1TARGET=TestExtension
44ZIP1LIST=*
45ZIPFLAGS=-r
46ZIP1DIR=$(MISC)/$(TARGET)
47ZIP1EXT=.oxt
48
49# --- Files --------------------------------------------------------
50
51#COPY_OXT_MANIFEST:= $(MISC)/$(TARGET)/META-INF/manifest.xml
52JAVAFILES = TestExtension.java
53
54# --- Targets ------------------------------------------------------
55
56ZIP1DEPS=$(MISC)/$(TARGET)/$(JARTARGET)\
57         $(MISC)/$(TARGET)/TestExtension.rdb\
58         $(MISC)/$(TARGET)/META-INF/manifest.xml
59
60.INCLUDE :  target.mk
61
62$(MISC)/$(TARGET)/META-INF:
63	@-$(MKDIRHIER) $(@)
64
65$(MISC)/TestExtension.urd: TestExtension.idl
66	$(COMMAND_ECHO)$(IDLC) -O$(MISC) -I$(SOLARIDLDIR) -cid -we $<
67
68$(MISC)/$(TARGET)/META-INF/manifest.xml $(MISC)/$(TARGET)/TestExtension.rdb : $(MISC)/$(TARGET)/META-INF
69
70$(MISC)/$(TARGET)/META-INF/manifest.xml: manifest.xml
71	$(COMMAND_ECHO)$(COPY) $< $@
72
73$(MISC)/$(TARGET)/TestExtension.rdb: $(MISC)/TestExtension.urd
74	$(COMMAND_ECHO)$(REGMERGE) $@ /UCR $<
75
76$(JAVACLASSFILES) .UPDATEALL: $(MISC)/$(TARGET)/TestExtension.rdb
77	$(COMMAND_ECHO)$(JAVAMAKER) -O$(CLASSDIR) -BUCR -nD -X$(SOLARBINDIR)/types.rdb $<
78
79$(MISC)/$(TARGET)/$(JARTARGET) : $(JARTARGETN)
80	$(COMMAND_ECHO)$(COPY) $< $@
81
82.ELSE
83@all:
84	@echo "Java disabled. Nothing to do."
85.ENDIF
86