2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 # --- Settings -------------------------------------------------
24 .INCLUDE
: settings.mk
26 # --- Files ----------------------------------------------------
33 .ELSE
# "$(OS)"!="MACOSX"
38 ZIP1LIST
:= $(shell $(PERL
) -w list_icons.pl
< Info.plist
)
43 .IF
"$(WITH_LANG)"!=""
44 ULFDIR
:=$(COMMONMISC
)$/desktopshare
45 .ELSE
# "$(WITH_LANG)"!=""
47 .ENDIF
# "$(WITH_LANG)"!=""
49 # --- Targets --------------------------------------------------
53 .IF
"$(ZIP1TARGETN)"!=""
54 ZIP1TARGETN
: Info.plist extract_icons_names.pl
56 .ENDIF
# "$(ZIP1TARGETN)"!=""
58 ALLTAR
: $(COMMONMISC
)$/{PkgInfo Info.plist
} $(COMMONBIN
)$/InfoPlist_
{$(alllangiso
)}.zip
60 $(COMMONMISC
)$/PkgInfo
:
61 echo
"APPL$(CREATOR_TYPE)" > $@
64 $(COMMONMISC
)$/Info.plist
: $$(@
:f
)
65 sed
-e
"s|\%EXECUTABLE|${EXECUTABLE}|g" $< > $@
67 $(COMMONBIN
)$/InfoPlist_
{$(alllangiso
)}.zip
: $(COMMONMISC
)$/$$(@
:b
)/InfoPlist.strings
68 cd
$(<:d
) && zip ..
/$(@
:f
).
$(INPATH
) $(<:f
)
69 $(MV
) -f
$(COMMONMISC
)$/$(@
:f
).
$(INPATH
) $@
71 $(COMMONMISC
)$/InfoPlist_
{$(alllangiso
)}$/InfoPlist.strings
: Info.plist
$(ULFDIR
)$/documents.ulf
73 $(PERL
) -w gen_strings.pl
-l
$(@
:d
:d
:b
:s
/InfoPlist_
//) -p
$< | iconv
-f UTF-8
-t UTF-16
> $@.
$(INPATH
)
74 $(MV
) -f
$@.
$(INPATH
) $@
76 .ENDIF
# "$(OS)"!="MACOSX"