summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-08-16 22:59:45 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-08-16 22:59:45 -0400
commitc3a190f94804dae9feef72fea0c69ffd821f0067 (patch)
treeda1e5815bc1751e31ba321925e5452a9029128c2
parent00ac51dfdbf39d80634d2d200151306ca9a8b8dc (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--Makefile2
-rw-r--r--README.md19
2 files changed, 14 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 7a4b797..01b739e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-prefix = /
+prefix = /usr/local
rootprefix = $(prefix)
rootlibexecdir = $(rootprefix)/lib/systemd
systemunitdir=$(rootprefix)/lib/systemd/system
diff --git a/README.md b/README.md
index ebb4993..28d59da 100644
--- a/README.md
+++ b/README.md
@@ -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=/`.