Mercurial > molko
comparison INSTALL.md @ 307:363024b76da7
make: create install-data rather than fakeroot
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 29 Jun 2021 09:49:48 +0200 |
parents | 3675021fa6e5 |
children | 8523fb0c8540 |
comparison
equal
deleted
inserted
replaced
306:6a7bca547f9a | 307:363024b76da7 |
---|---|
39 | 39 |
40 Examples and `mlk-adventure` executable searches for data into a specific | 40 Examples and `mlk-adventure` executable searches for data into a specific |
41 directory, when building those are not already discoverable because targets are | 41 directory, when building those are not already discoverable because targets are |
42 not already installed. | 42 not already installed. |
43 | 43 |
44 It's still possible to build a fakeroot directory to run examples and | 44 You need to install at least the data once using `install-data` target, you can |
45 `mlk-adventure` without installing. To do this you simply need to use `fakeroot` | 45 do this without root access by using a temporary directory and set the |
46 target. | 46 `MLK_ROOT` environment variable. |
47 | |
48 $ make DESTDIR=datadir install | |
49 $ MLK_ROOT=datadir ./mlk-adventure/mlk-adventure | |
50 (or to run examples) | |
51 $ MLK_ROOT=datadir ./examples/ | |
47 | 52 |
48 Note: you need rsync installed, in contrast to `install` with a `DESTDIR` | 53 Note: you need rsync installed, in contrast to `install` with a `DESTDIR` |
49 macro it only copies runtime data and avoid re-copying what didn't | 54 macro it only copies runtime data and avoid re-copying what didn't |
50 change for a faster experience. | 55 change for a faster experience. |
51 | 56 |