update dev300-m58
[ooovba.git] / sysui / desktop / macosx / makefile.mk
blob951def80bdc77561d7bdf5489aeddd06d705453e
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.6 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
33 TARGET=desktopmacosx
35 # --- Settings -------------------------------------------------
37 .INCLUDE : settings.mk
39 # --- Files ----------------------------------------------------
41 .IF "$(OS)"!="MACOSX"
43 dummy:
44 @echo "Nothing to build for OS $(OS)"
46 .ELSE # "$(OS)"!="MACOSX"
48 ZIPFLAGS = -r
49 ZIP1TARGET = osxicons
50 ZIP1DIR = ../icons
51 ZIP1LIST := $(shell $(PERL) -w list_icons.pl < Info.plist)
53 .IF "$(GUIBASE)"!="aqua"
54 CREATOR_TYPE=OOo2
55 EXECUTABLE=droplet
56 .ELSE
57 CREATOR_TYPE=OOO2
58 EXECUTABLE=soffice
59 .ENDIF
61 SOURCE=$(RSCREVISION)
63 .IF "$(CWS_WORK_STAMP)" != ""
64 CWS=[CWS:$(CWS_WORK_STAMP)]
65 .ENDIF
67 .IF "$(WITH_LANG)"!=""
68 ULFDIR:=$(COMMONMISC)$/desktopshare
69 .ELSE # "$(WITH_LANG)"!=""
70 ULFDIR:=..$/share
71 .ENDIF # "$(WITH_LANG)"!=""
73 # --- Targets --------------------------------------------------
75 .INCLUDE : target.mk
77 ZIP1TARGETN : Info.plist extract_icons_names.pl
79 ALLTAR : $(COMMONMISC)$/{PkgInfo Info.plist} $(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip
81 $(COMMONMISC)$/PkgInfo :
82 echo "APPL$(CREATOR_TYPE)" > $@
85 $(COMMONMISC)$/Info.plist : $$(@:f)
86 sed -e "s|\%EXECUTABLE|${EXECUTABLE}|g" -e "s|\%SOURCE|[$(SOURCE)$(CWS)]|g" $< > $@
88 $(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip : $(COMMONMISC)$/$$(@:b)/InfoPlist.strings
89 cd $(<:d) && zip ../$(@:f).$(INPATH) $(<:f)
90 $(MV) -f $(COMMONMISC)$/$(@:f).$(INPATH) $@
92 $(COMMONMISC)$/InfoPlist_{$(alllangiso)}$/InfoPlist.strings : Info.plist $(ULFDIR)$/documents.ulf
93 $(MKDIRHIER) $(@:d)
94 $(PERL) -w gen_strings.pl -l $(@:d:d:b:s/InfoPlist_//) -p $< | iconv -f UTF-8 -t UTF-16 > $@.$(INPATH)
95 $(MV) -f $@.$(INPATH) $@
97 .ENDIF # "$(OS)"!="MACOSX"