xref: /aoo42x/test/smoketestdoc/data/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 = smoketestdoc
30TARGET = data
31
32.INCLUDE: settings.mk
33
34$(BIN)/smoketestdoc.sxw: $(MISC)/zip/smoketestdoc.sxw
35    $(COPY) $< $@
36
37$(MISC)/zip/smoketestdoc.sxw: \
38        Events.xml \
39        Global.xml \
40        OptionsDlg.xml \
41        Test_10er.xml \
42        Test_DB.xml \
43        Test_Ext.xml \
44        content.xml \
45        dialog-lb.xml \
46        dialog-lc.xml \
47        manifest.xml \
48        meta.xml \
49        script-lb.xml \
50        script-lc.xml \
51        settings.xml \
52        styles.xml
53    $(COMMAND_ECHO)$(RM) -r $(MISC)/zip
54    $(COMMAND_ECHO)$(MKDIR) $(MISC)/zip
55    $(COMMAND_ECHO)$(COPY) content.xml meta.xml settings.xml styles.xml $(MISC)/zip/
56    $(COMMAND_ECHO)printf application/vnd.sun.xml.writer > $(MISC)/zip/mimetype
57    $(COMMAND_ECHO)$(MKDIR) $(MISC)/zip/META-INF
58    $(COMMAND_ECHO)$(COPY) manifest.xml $(MISC)/zip/META-INF/
59    $(COMMAND_ECHO)$(MKDIR) $(MISC)/zip/Basic
60    $(COMMAND_ECHO)$(COPY) script-lc.xml $(MISC)/zip/Basic/
61    $(COMMAND_ECHO)$(MKDIR) $(MISC)/zip/Basic/Standard
62    $(COMMAND_ECHO)$(COPY) script-lb.xml Events.xml Global.xml Test_10er.xml Test_DB.xml \
63        Test_Ext.xml $(MISC)/zip/Basic/Standard/
64    $(COMMAND_ECHO)$(MKDIR) $(MISC)/zip/Dialogs
65    $(COMMAND_ECHO)$(COPY) dialog-lc.xml $(MISC)/zip/Dialogs/
66    $(COMMAND_ECHO)$(MKDIR) $(MISC)/zip/Dialogs/Standard
67    $(COMMAND_ECHO)$(COPY) dialog-lb.xml OptionsDlg.xml $(MISC)/zip/Dialogs/Standard/
68    $(COMMAND_ECHO)cd $(MISC)/zip && zip -rD $(@:f) .
69
70.INCLUDE: target.mk
71