makefiles: Move wine.desktop to the loader directory.

Also don't install it on Mac OS X or Android.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2015-10-26 23:03:08 +09:00
parent 581be47a45
commit 2207a8907c
4 changed files with 22 additions and 7 deletions

11
configure vendored
View File

@ -8825,6 +8825,15 @@ $wine_binary: main.o
wine-installed: main.o
\$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
"
if test -z "$with_wine64"
then
as_fn_append LOADER_RULES "
install install-lib::
\$(INSTALL_DATA) \$(srcdir)/wine.desktop \$(DESTDIR)\$(datadir)/applications/wine.desktop
uninstall::
\$(RM) \$(DESTDIR)\$(datadir)/applications/wine.desktop
"
fi
;;
esac
@ -18116,7 +18125,7 @@ wine_fn_config_program wusa enable_wusa install
wine_fn_config_program xcopy enable_xcopy install,po
wine_fn_config_test programs/xcopy/tests xcopy.exe_test
wine_fn_config_makefile server enable_server clean,install-lib,manpage
wine_fn_config_tool tools clean,install-dev,install-lib,manpage
wine_fn_config_tool tools clean,install-dev,manpage
wine_fn_config_tool tools/sfnt2fon clean
wine_fn_config_tool tools/widl clean,install-dev,manpage
wine_fn_config_tool tools/winebuild clean,install-dev,manpage

View File

@ -1039,6 +1039,15 @@ $wine_binary: main.o
wine-installed: main.o
\$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
"])
if test -z "$with_wine64"
then
AS_VAR_APPEND([LOADER_RULES],["
install install-lib::
\$(INSTALL_DATA) \$(srcdir)/wine.desktop \$(DESTDIR)\$(datadir)/applications/wine.desktop
uninstall::
\$(RM) \$(DESTDIR)\$(datadir)/applications/wine.desktop
"])
fi
;;
esac
@ -3589,7 +3598,7 @@ WINE_CONFIG_PROGRAM(wusa,,[install])
WINE_CONFIG_PROGRAM(xcopy,,[install,po])
WINE_CONFIG_TEST(programs/xcopy/tests)
WINE_CONFIG_MAKEFILE([server],,[clean,install-lib,manpage])
WINE_CONFIG_TOOL(tools,[clean,install-dev,install-lib,manpage])
WINE_CONFIG_TOOL(tools,[clean,install-dev,manpage])
WINE_CONFIG_TOOL(tools/sfnt2fon,[clean])
WINE_CONFIG_TOOL(tools/widl,[clean,install-dev,manpage])
WINE_CONFIG_TOOL(tools/winebuild,[clean,install-dev,manpage])

View File

@ -18,13 +18,10 @@ all: wineapploader
make_xftmpl$(EXEEXT): make_xftmpl.o
$(CC) $(CFLAGS) -o $@ make_xftmpl.o $(LIBPORT) $(LDFLAGS)
.PHONY: install install-lib install-dev uninstall
install install-lib::
$(INSTALL_DATA) $(srcdir)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
.PHONY: install install-dev uninstall
install install-dev:: install-man-pages
$(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
uninstall::
$(RM) $(DESTDIR)$(datadir)/applications/wine.desktop $(DESTDIR)$(bindir)/winemaker
$(RM) $(DESTDIR)$(bindir)/winemaker