Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / sysui / desktop / macosx / makefile.mk
blob871c77ec48639dacb37e727fbaf3a1f15d3d00cf
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 .
19 PRJ=..$/..
20 TARGET=desktopmacosx
22 # --- Settings -------------------------------------------------
24 .INCLUDE : settings.mk
26 # --- Files ----------------------------------------------------
28 .IF "$(OS)"!="MACOSX"
30 dummy:
31 # nothing
33 .ELSE # "$(OS)"!="MACOSX"
35 ZIPFLAGS = -r
36 ZIP1TARGET = osxicons
37 ZIP1DIR = ../icons
38 ZIP1LIST := $(shell $(PERL) -w list_icons.pl < Info.plist)
40 CREATOR_TYPE=LIBO
41 EXECUTABLE=soffice
43 .IF "$(WITH_LANG)"!=""
44 ULFDIR:=$(COMMONMISC)$/desktopshare
45 .ELSE # "$(WITH_LANG)"!=""
46 ULFDIR:=..$/share
47 .ENDIF # "$(WITH_LANG)"!=""
49 # --- Targets --------------------------------------------------
51 .INCLUDE : target.mk
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
72 $(MKDIRHIER) $(@:d)
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"