diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 10:19:32 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 10:19:32 +0000 |
commit | 4143c5febf07c8264de30f3fe899fc849202bd48 (patch) | |
tree | ff108fceb01d699c17fdf8fafdbb735c2b0443c8 /sysui/desktop/share/makefile.mk | |
parent | 5fe86ce98043439346fc5de2cf70888dc1ca70de (diff) |
INTEGRATION: CWS sysui03 (1.2.46); FILE MERGED
2005/01/11 07:56:00 obr 1.2.46.1: #i39755#,#i33855# Moved Solaris desktop integration into a single package. Moved the start scripts in /usr/bin into the desktop integration packages and made the module launchers symbolic links into the office installation.
Diffstat (limited to 'sysui/desktop/share/makefile.mk')
-rw-r--r-- | sysui/desktop/share/makefile.mk | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/sysui/desktop/share/makefile.mk b/sysui/desktop/share/makefile.mk index 34cccea4d744..b39060d7029a 100644 --- a/sysui/desktop/share/makefile.mk +++ b/sysui/desktop/share/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.2 $ +# $Revision: 1.3 $ # -# last change: $Author: hjs $ $Date: 2004-06-25 16:46:24 $ +# last change: $Author: kz $ $Date: 2005-01-21 11:19:32 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -69,8 +69,15 @@ TARGET=desktopshare .INCLUDE : settings.mk +# --- Product Version Information ---------------------------------- + +.INCLUDE : ../productversion.mk + # --- Files -------------------------------------------------------- +# GNOME does not like icon names with more than one '.' +ICONPREFIX = $(UNIXFILENAME:s/.//g) + ULFFILES= \ documents.ulf \ launcher_comment.ulf \ @@ -78,12 +85,33 @@ ULFFILES= \ DESTULFFILES=$(foreach,i,$(ULFFILES) $(COMMONMISC)$/$(TARGET)$/$i) +LAUNCHERLIST = writer calc draw impress math base printeradmin +LAUNCHERDEPN = ../menus/{$(LAUNCHERLIST)}.desktop + +LAUNCHERFLAGFILE = $(COMMONMISC)/$(TARGET)/xdg.flag + # --- Targets ------------------------------------------------------ .INCLUDE : target.mk .IF "$(GUI)"=="UNX" -ALLTAR : $(DESTULFFILES) +ALLTAR : $(LAUNCHERFLAGFILE) $(DESTULFFILES) .ENDIF # "$(GUI)"=="UNIX" +# +# Copy/patch the .desktop files to the output tree and +# merge-in the translations. +# +$(LAUNCHERFLAGFILE) : $(LAUNCHERDEPN) ../productversion.mk brand.pl translate.pl $(COMMONMISC)$/$(TARGET)$/launcher_name.ulf $(COMMONMISC)$/$(TARGET)$/launcher_comment.ulf + @touch $@ + @$(MKDIRHIER) $(@:db).$(INPATH) + @echo Creating desktop entries .. + @echo --------------------------------- + @$(PERL) brand.pl -p "$(LONGPRODUCTNAME)" -u $(UNIXFILENAME) --iconprefix "$(ICONPREFIX)-" $(LAUNCHERDEPN) $(@:db).$(INPATH) + @$(PERL) translate.pl -p "$(LONGPRODUCTNAME)" -d $(@:db).$(INPATH) --ext "desktop" --key "Name" $(COMMONMISC)$/$(TARGET)$/launcher_name.ulf + @$(PERL) translate.pl -p "$(LONGPRODUCTNAME)" -d $(@:db).$(INPATH) --ext "desktop" --key "Comment" $(COMMONMISC)$/$(TARGET)$/launcher_comment.ulf +.IF "$(WITH_LIBSN)"=="YES" + @$(foreach,i,$(LAUNCHERLIST) $(shell echo "StartupNotify=true" >> $(@:db).$(INPATH)/$i.desktop)) +.ENDIF + @mv -f $(@:db).$(INPATH)/* $(@:d) |