File: INSTALL.md

package info (click to toggle)
nsnake 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 760 kB
  • ctags: 839
  • sloc: cpp: 5,472; ansic: 201; makefile: 107
file content (89 lines) | stat: -rw-r--r-- 2,510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# nsnake INSTALL

Installing information for the game nsnake.
This applies to GNU/Linux systems.
Microsoft Windows users have a precompiled executable.

# Installation

Briefly, the following shell commands should configure,
build, and install this package on the default directories:

    $ make
    $ make install

# Installation Info

By default, `make install` installs the package on the following
directories:

| Directory                    | What to store            |
| ---------------------------- | -------------------------|
| `/usr/games/`                | Executable files         |
| `/usr/local/share/man/man6/` | Man page                 |
| `~/.local/share/nsnake/`     | User config and scores   |

# Advanced Installation

You can specify a custom root directory for the installation
(other than `/`).

To do this, give `make install` the option `DESTDIR=CUSTOM_ROOT`,
where `CUSTOM_ROOT` must be an absolute directory name.
For example:

    $ make install DESTDIR=test/dir

This way, the file hierarchy will be:

| Directory                            | What to store            |
| ------------------------------------ | -------------------------|
| `test/dir/usr/games/`                | Executable files         |
| `test/dir/usr/local/share/man/man6/` | Man page                 |
| `~/.local/share/nsnake/`             | User config and scores   |

You can also specify an installation prefix other than `/usr/local`
by giving `make` the option `PREFIX=CUSTOM_PREFIX`, where
`CUSTOM_PREFIX` is an absolute directory name.
For example:

    $ make install PREFIX=test/dir

This way, the file hierarchy will be:

| Directory                  | What to store            |
| -------------------------- | -------------------------|
| `test/dir/`                | Executable files         |
| `test/dir/share/man/man6/` | Man page                 |
| `~/.local/share/nsnake/`   | User config and scores   |

# Uninstallation

To uninstall this package:

    $ make uninstall

To purge (also remove the Highscore files, man page and
configurations) go for:

    $ make purge

# Advanced Uninstallation

If you specified a custom root directory for installation,
`make` needs to know about it to uninstall properly:

    $ make uninstall DESTDIR=test/dir

The same logic applies to purging:

    $ make purge DESTDIR=test/dir

If you installed it with a custom prefix, do the same:

    $ make uninstall PREFIX=test/dir

    $ make purge PREFIX=test/dir

    $ make purge SCOREDIR=test/dir