1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
35 # --- Settings -------------------------------------------------
37 .INCLUDE
: settings.mk
39 # --- Files ----------------------------------------------------
44 @echo
"Nothing to build for OS $(OS)"
46 .ELSE
# "$(OS)"!="MACOSX"
51 ZIP1LIST
:= $(shell $(PERL
) -w list_icons.pl
< Info.plist
)
53 .IF
"$(GUIBASE)"!="aqua"
63 .IF
"$(CWS_WORK_STAMP)" != ""
64 CWS
=[CWS
:$(CWS_WORK_STAMP
)]
67 .IF
"$(WITH_LANG)"!=""
68 ULFDIR
:=$(COMMONMISC
)$/desktopshare
69 .ELSE
# "$(WITH_LANG)"!=""
71 .ENDIF
# "$(WITH_LANG)"!=""
73 # --- Targets --------------------------------------------------
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
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"