xref: /aoo41x/main/desktop/zipintro/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=..
29
30PRJNAME=desktop
31TARGET=zipintro
32# --- Settings -----------------------------------------------------------
33
34.INCLUDE :  settings.mk
35
36DEFAULT_FLAVOURS=dev dev_nologo nologo broffice dev_broffice nologo_broffice nologo_dev_broffice intro
37
38ZIP1LIST= \
39	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/dev$/introabout$/intro.png $(INTRO_BITMAPS)) \
40	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS))
41ZIP2LIST= \
42	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/dev_nologo$/introabout$/intro.png $(INTRO_BITMAPS)) \
43	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS))
44ZIP3LIST= \
45	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/nologo$/introabout$/intro.png $(INTRO_BITMAPS)) \
46	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS))
47ZIP4LIST= \
48	$(null,$(INTRO_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/intro.png $(INTRO_BITMAPS)) \
49	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS))
50ZIP5LIST= \
51	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/dev_broffice$/introabout$/intro.png $(INTRO_BITMAPS)) \
52	$(null,$(ABOUT_BITMAPS) $(MISC)$/ooo_custom_images$/broffice$/introabout$/about.png $(ABOUT_BITMAPS))
53ZIP6LIST= \
54	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/broffice$/introabout$/intro.png $(INTRO_BITMAPS)) \
55	$(null,$(ABOUT_BITMAPS) $(MISC)$/ooo_custom_images$/broffice$/introabout$/about.png $(ABOUT_BITMAPS))
56ZIP7LIST= \
57	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/nologo_broffice$/introabout$/intro.png $(INTRO_BITMAPS)) \
58	$(null,$(ABOUT_BITMAPS) $(MISC)$/ooo_custom_images$/broffice$/introabout$/about.png $(ABOUT_BITMAPS))
59ZIP8LIST= \
60	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/dev_nologo_broffice$/introabout$/intro.png $(INTRO_BITMAPS)) \
61	$(null,$(ABOUT_BITMAPS) $(MISC)$/ooo_custom_images$/broffice$/introabout$/about.png $(ABOUT_BITMAPS))
62
63ZIP1TARGET=dev_intro
64ZIP1DEPS=$(ZIP1LIST)
65
66ZIP2TARGET=dev_nologo_intro
67ZIP2DEPS=$(ZIP2LIST)
68
69ZIP3TARGET=nologo_intro
70ZIP3DEPS=$(ZIP3LIST)
71
72ZIP4TARGET=intro_intro
73ZIP4DEPS=$(ZIP4LIST)
74
75ZIP5TARGET=dev_broffice_intro
76ZIP5DEPS=$(ZIP5LIST)
77
78ZIP6TARGET=broffice_intro
79ZIP6DEPS=$(ZIP6LIST)
80
81ZIP7TARGET=nologo_broffice_intro
82ZIP7DEPS=$(ZIP7LIST)
83
84ZIP8TARGET=nologo_dev_broffice_intro
85ZIP8DEPS=$(ZIP8LIST)
86
87.INCLUDE :  target.mk
88
89ALLTAR : $(foreach,i,$(DEFAULT_FLAVOURS) $(COMMONBIN)$/$i$/intro.zip)
90
91# now duplicate for deliver...
92# Because of issue 78837 we cannot use a % rule here (Commented out below)
93# but have to write individual rules.
94#$(COMMONBIN)$/%$/intro.zip : $(COMMONBIN)$/%_intro.zip
95
96$(COMMONBIN)$/dev$/intro.zip : $(COMMONBIN)$/dev_intro.zip
97	@@-$(MKDIR) $(@:d)
98	@$(COPY) $< $@
99
100$(COMMONBIN)$/dev_nologo$/intro.zip : $(COMMONBIN)$/dev_nologo_intro.zip
101	@@-$(MKDIR) $(@:d)
102	@$(COPY) $< $@
103
104$(COMMONBIN)$/nologo$/intro.zip : $(COMMONBIN)$/nologo_intro.zip
105	@@-$(MKDIR) $(@:d)
106	@$(COPY) $< $@
107
108$(COMMONBIN)$/broffice$/intro.zip : $(COMMONBIN)$/broffice_intro.zip
109	@@-$(MKDIR) $(@:d)
110	@$(COPY) $< $@
111
112$(COMMONBIN)$/dev_broffice$/intro.zip : $(COMMONBIN)$/dev_broffice_intro.zip
113        @@-$(MKDIR) $(@:d)
114        @$(COPY) $< $@
115
116$(COMMONBIN)$/nologo_broffice$/intro.zip : $(COMMONBIN)$/nologo_broffice_intro.zip
117        @@-$(MKDIR) $(@:d)
118        @$(COPY) $< $@
119
120$(COMMONBIN)$/nologo_dev_broffice$/intro.zip : $(COMMONBIN)$/nologo_dev_broffice_intro.zip
121        @@-$(MKDIR) $(@:d)
122        @$(COPY) $< $@
123
124$(COMMONBIN)$/intro$/intro.zip : $(COMMONBIN)$/intro_intro.zip
125	@@-$(MKDIR) $(@:d)
126	@$(COPY) $< $@
127
128$(MISC)$/%.bmp : $(SOLARSRC)$/%.bmp
129	@@-$(MKDIRHIER) $(@:d)
130	$(COPY) $< $@
131
132$(MISC)$/%.png : $(SOLARSRC)$/%.png
133	@@-$(MKDIRHIER) $(@:d)
134	$(COPY) $< $@
135