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 = location_test
30PACKAGE = com$/sun$/star$/comp$/smoketest
31TARGET  = com_sun_star_comp_smoketest
32
33no_common_build_zip:=TRUE
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE : settings.mk
38
39JARFILES = ridl.jar jurt.jar unoil.jar juh.jar
40
41JARTARGET = LocationTest.jar
42JARCOMPRESS 	= TRUE
43CUSTOMMANIFESTFILE = MANIFEST.MF
44
45ZIP1TARGET=locationtest
46ZIP1LIST=*
47ZIPFLAGS=-r
48ZIP1DIR=$(MISC)$/$(TARGET)
49ZIP1EXT=.oxt
50
51# --- Files --------------------------------------------------------
52
53COPY_OXT_MANIFEST:= $(MISC)$/$(TARGET)$/META-INF$/manifest.xml
54JAVAFILES = LocationTest.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)$/LocationTest.rdb
65    $(JAVAMAKER) -O$(CLASSDIR) -BUCR -nD -X$(SOLARBINDIR)/types.rdb $<
66    $(TOUCH) $@
67
68$(BIN)$/LocationTest.rdb: LocationTest.idl
69    $(IDLC) -O$(MISC) -I$(SOLARIDLDIR) -cid -we $<
70    +-$(RM) $@
71    $(REGMERGE) $@ /UCR $(MISC)$/LocationTest.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)$/LocationTest.rdb description.xml
77	$(COPY)  manifest.xml $(MISC)$/$(TARGET)$/META-INF$/manifest.xml
78	$(COPY)  $(JARTARGETN) $(MISC)$/$(TARGET)$/$(JARTARGET)
79	$(COPY)  $(BIN)$/LocationTest.rdb $(MISC)$/$(TARGET)$/LocationTest.rdb
80	$(COPY)  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