Added support for installing the .desktop file with "make install".

This commit is contained in:
onpon4 2017-02-06 12:20:15 -05:00
parent a4716bdf44
commit 0017cffcf9
5 changed files with 27 additions and 9 deletions

3
.gitignore vendored
View File

@ -24,6 +24,9 @@ config.h.in~
src/Makefile src/Makefile
src/Makefile.in src/Makefile.in
src/.deps src/.deps
misc/Makefile
misc/Makefile.in
misc/.deps
# Mac OS X # Mac OS X
*.DS_Store *.DS_Store

View File

@ -3,7 +3,7 @@
# http://creativecommons.org/publicdomain/zero/1.0/ for more # http://creativecommons.org/publicdomain/zero/1.0/ for more
# information. This file is offered as-is, without any warranty. # information. This file is offered as-is, without any warranty.
SUBDIRS = src SUBDIRS = src misc
dist_doc_DATA = README.txt COPYING LICENSES dist_doc_DATA = README.txt COPYING LICENSES
nobase_dist_doc_DATA = docs/* nobase_dist_doc_DATA = docs/*

View File

@ -1,9 +1,7 @@
Copyright (C) 2015, 2016 onpon4 <onpon4@riseup.net> This file has been dedicated to the public domain, to the extent
possible under applicable law, via CC0. See
Copying and distribution of this file, with or without modification, http://creativecommons.org/publicdomain/zero/1.0/ for more
are permitted in any medium without royalty provided the copyright information. This file is offered as-is, without any warranty.
notice and this notice are preserved. This file is offered as-is,
without any warranty.
======================================================================== ========================================================================
@ -67,5 +65,11 @@ Run "./configure --help" to see more options.
The third step ("make install") is technically optional, but highly The third step ("make install") is technically optional, but highly
recommended. recommended.
To play, simply run the "starfighter" binary. If you choose not to use For most GNU/Linux systems, an icon should be added to your menu when
the "make install" command, you can find it in the "src" directory. you run "make install". You can click on this icon to start up the game.
Otherwise, you can manually install or use the launcher found in the
"misc" directory, or you can run the "starfighter" command to start up
the game.
If you choose not to use the "make install" command, you can find the
"starfighter" binary in the "src" directory.

View File

@ -56,5 +56,6 @@ AC_CHECK_FUNCS([atexit mkdir])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
src/Makefile src/Makefile
misc/Makefile
]) ])
AC_OUTPUT AC_OUTPUT

10
misc/Makefile.am Normal file
View File

@ -0,0 +1,10 @@
# This file has been dedicated to the public domain, to the extent
# possible under applicable law, via CC0. See
# http://creativecommons.org/publicdomain/zero/1.0/ for more
# information. This file is offered as-is, without any warranty.
desktopdir = $(datadir)/applications
desktop_DATA = starfighter.desktop
icondir = $(datadir)/pixmaps
icon_DATA = starfighter.png