xref: /aoo4110/main/desktop/zipintro/makefile.mk (revision b1cdbd2c)
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=..
25
26PRJNAME=desktop
27TARGET=zipintro
28# --- Settings -----------------------------------------------------------
29
30.INCLUDE :  settings.mk
31
32DEFAULT_FLAVOURS=dev dev_nologo nologo intro beta
33
34ZIP1LIST= \
35	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/dev$/introabout$/intro.png $(INTRO_BITMAPS)) \
36	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS)) \
37	$(MISC)$/$(RSCDEFIMG)$/introabout$/logo.png
38ZIP2LIST= \
39	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/dev_nologo$/introabout$/intro.png $(INTRO_BITMAPS)) \
40	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS)) \
41	$(MISC)$/$(RSCDEFIMG)$/introabout$/logo.png
42ZIP3LIST= \
43	$(null,$(INTRO_BITMAPS) $(MISC)$/ooo_custom_images$/nologo$/introabout$/intro.png $(INTRO_BITMAPS)) \
44	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS)) \
45	$(MISC)$/$(RSCDEFIMG)$/introabout$/logo.png
46ZIP4LIST= \
47	$(null,$(INTRO_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/intro.png $(INTRO_BITMAPS)) \
48	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/about.png $(ABOUT_BITMAPS)) \
49	$(MISC)$/$(RSCDEFIMG)$/introabout$/logo.png
50ZIP5LIST= \
51	$(null,$(INTRO_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/beta$/intro.png $(INTRO_BITMAPS)) \
52	$(null,$(ABOUT_BITMAPS) $(MISC)$/$(RSCDEFIMG)$/introabout$/beta$/about.png $(ABOUT_BITMAPS)) \
53	$(MISC)$/$(RSCDEFIMG)$/introabout$/logo.png
54
55ZIP1TARGET=dev_intro
56ZIP1DEPS=$(ZIP1LIST)
57
58ZIP2TARGET=dev_nologo_intro
59ZIP2DEPS=$(ZIP2LIST)
60
61ZIP3TARGET=nologo_intro
62ZIP3DEPS=$(ZIP3LIST)
63
64ZIP4TARGET=intro_intro
65ZIP4DEPS=$(ZIP4LIST)
66
67ZIP5TARGET=beta_intro
68ZIP5DEPS=$(ZIP5LIST)
69
70.INCLUDE :  target.mk
71
72ALLTAR : $(foreach,i,$(DEFAULT_FLAVOURS) $(COMMONBIN)$/$i$/intro.zip)
73
74# now duplicate for deliver...
75# Because of issue 78837 we cannot use a % rule here (Commented out below)
76# but have to write individual rules.
77#$(COMMONBIN)$/%$/intro.zip : $(COMMONBIN)$/%_intro.zip
78
79$(COMMONBIN)$/dev$/intro.zip : $(COMMONBIN)$/dev_intro.zip
80	@@-$(MKDIR) $(@:d)
81	@$(COPY) $< $@
82
83$(COMMONBIN)$/dev_nologo$/intro.zip : $(COMMONBIN)$/dev_nologo_intro.zip
84	@@-$(MKDIR) $(@:d)
85	@$(COPY) $< $@
86
87$(COMMONBIN)$/nologo$/intro.zip : $(COMMONBIN)$/nologo_intro.zip
88	@@-$(MKDIR) $(@:d)
89	@$(COPY) $< $@
90
91$(COMMONBIN)$/intro$/intro.zip : $(COMMONBIN)$/intro_intro.zip
92	@@-$(MKDIR) $(@:d)
93	@$(COPY) $< $@
94
95$(COMMONBIN)$/beta$/intro.zip : $(COMMONBIN)$/beta_intro.zip
96	@@-$(MKDIR) $(@:d)
97	@$(COPY) $< $@
98
99$(MISC)$/%.bmp : $(SOLARSRC)$/%.bmp
100	@@-$(MKDIRHIER) $(@:d)
101	$(COPY) $< $@
102
103$(MISC)$/%.png : $(SOLARSRC)$/%.png
104	@@-$(MKDIRHIER) $(@:d)
105	$(COPY) $< $@
106