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 = updateinfo
26PACKAGE = com$/sun$/star$/comp$/smoketest
27TARGET  = com_sun_star_comp_smoketest
28
29no_common_build_zip:=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE : settings.mk
34
35JARFILES = ridl.jar jurt.jar unoil.jar juh.jar
36
37
38JARTARGET = TestExtension.jar
39JARCOMPRESS 	= TRUE
40CUSTOMMANIFESTFILE = MANIFEST.MF
41
42ZIP1TARGET=updateinfo
43ZIP1LIST=*
44ZIPFLAGS=-r
45ZIP1DIR=$(MISC)$/$(TARGET)
46ZIP1EXT=.oxt
47
48EXTUPDATEINFO_NAME=org.openoffice.extensions.testarea.desktop.updateinfo.update.xml
49EXTUPDATEINFO_SOURCE=description.xml
50EXTUPDATEINFO_URLS = http://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt
51# --- Files --------------------------------------------------------
52
53COPY_OXT_MANIFEST:= $(MISC)$/$(TARGET)$/META-INF$/manifest.xml
54JAVAFILES = TestExtension.java
55
56# --- Targets ------------------------------------------------------
57
58.INCLUDE :  target.mk
59
60$(JARTARGETN) : $(MISC)$/$(TARGET).javamaker.done
61
62$(JAVACLASSFILES) : $(MISC)$/$(TARGET).javamaker.done
63
64$(MISC)$/$(TARGET).javamaker.done: $(BIN)$/TestExtension.rdb
65    $(JAVAMAKER) -O$(CLASSDIR) -BUCR -nD -X$(SOLARBINDIR)/types.rdb $<
66    $(TOUCH) $@
67
68$(BIN)$/TestExtension.rdb: TestExtension.idl
69    $(IDLC) -O$(MISC) -I$(SOLARIDLDIR) -cid -we $<
70    +-$(RM) $@
71    $(REGMERGE) $@ /UCR $(MISC)$/TestExtension.urd
72
73$(MISC)$/$(ZIP1TARGET).createdir :
74	+$(MKDIRHIER) $(MISC)$/$(TARGET)$/META-INF >& $(NULLDEV) && $(TOUCH) $@
75
76$(MISC)$/$(TARGET)_resort : manifest.xml $(JARTARGETN) $(MISC)$/$(ZIP1TARGET).createdir $(BIN)$/TestExtension.rdb description.xml
77	$(GNUCOPY) -u manifest.xml $(MISC)$/$(TARGET)$/META-INF$/manifest.xml
78	$(GNUCOPY) -u $(JARTARGETN) $(MISC)$/$(TARGET)$/$(JARTARGET)
79	$(GNUCOPY) -u $(BIN)$/TestExtension.rdb $(MISC)$/$(TARGET)$/TestExtension.rdb
80	$(GNUCOPY) -u description.xml $(MISC)$/$(TARGET)$/description.xml
81	$(TOUCH) $@
82
83.IF "$(ZIP1TARGETN)"!=""
84$(ZIP1TARGETN) : $(MISC)$/$(TARGET)_resort $(MISC)$/$(ZIP1TARGET).createdir
85
86.ENDIF          # "$(ZIP1TARGETN)"!=""
87
88