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.in
src/.deps
misc/Makefile
misc/Makefile.in
misc/.deps
# Mac OS X
*.DS_Store

View File

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

View File

@ -1,9 +1,7 @@
Copyright (C) 2015, 2016 onpon4 <onpon4@riseup.net>
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
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.
========================================================================
@ -67,5 +65,11 @@ Run "./configure --help" to see more options.
The third step ("make install") is technically optional, but highly
recommended.
To play, simply run the "starfighter" binary. If you choose not to use
the "make install" command, you can find it in the "src" directory.
For most GNU/Linux systems, an icon should be added to your menu when
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([
Makefile
src/Makefile
misc/Makefile
])
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