diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-08-16 22:59:45 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-08-16 22:59:45 -0400 |
commit | c3a190f94804dae9feef72fea0c69ffd821f0067 (patch) | |
tree | da1e5815bc1751e31ba321925e5452a9029128c2 | |
parent | 00ac51dfdbf39d80634d2d200151306ca9a8b8dc (diff) |
Better document installation; change default prefix=/usr/local
Go >= 1.4 is required, because 1.4 introduced os.Unsetenv, which we use.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 19 |
2 files changed, 14 insertions, 7 deletions
@@ -1,4 +1,4 @@ -prefix = / +prefix = /usr/local rootprefix = $(prefix) rootlibexecdir = $(rootprefix)/lib/systemd systemunitdir=$(rootprefix)/lib/systemd/system @@ -17,14 +17,21 @@ So, I'm introducing systemd-timesyncd-wait. It is a service that listens for messages from systemd-timesyncd, and block until it sees a message indicating that systemd-timesyncd has synchronized the time. -### Requirements +# Installation - go > 1.4 - make +To compile systemd-timesyncd-wait, you will need the following + - Go >= 1.4 + - GNU Make -### Installation +The only run-time dependencies are systemd (obviously), and the `rm` +program. -Clone the repo and execute: +To install, simply grab a copy of the repo, and run `make install`, +with any configuration options specified as arguments: - make && make install + make prefix=/usr install + +Of course, the desired value `prefix=` depends on your system. Arch +and Parabola users will be most happy with `prefix=/usr`, +Ubuntu Xenial users will want to set `prefix=/`. |