aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-05 13:05:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-05 13:06:49 +1300
commit531c7440adb7f5fb295458dca6ba03e6f08fa9a2 (patch)
tree400620de960270a93107672ff1a8f78b26cba41e
parentMove scripts into bin subdir (diff)
downloadmpdlrc-531c7440adb7f5fb295458dca6ba03e6f08fa9a2.tar.gz
mpdlrc-531c7440adb7f5fb295458dca6ba03e6f08fa9a2.zip
Add a Makefile
-rw-r--r--Makefile9
-rw-r--r--README.markdown8
2 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..01624ec
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+.PHONY: all install
+
+PREFIX := /usr/local
+
+all :
+
+install :
+ install -m 0755 bin/* "$(PREFIX)"/bin
+
diff --git a/README.markdown b/README.markdown
index 2cacbef..df02fec 100644
--- a/README.markdown
+++ b/README.markdown
@@ -5,7 +5,9 @@ Print timed lyrics from an LRC file for MPD's currently playing song
line-by-line to `stdout`: <https://en.wikipedia.org/wiki/LRC_%28file_format%29>
Needs `Net::MPD` and a few core Perl packages. Expects to find lyrics named
-`Artist - Title.lrc` in `~/.lyrics`.
+`Artist - Title.lrc` in `~/.lyrics`. An LRC file I made for Darkthrone's "To
+Walk The Infernal Fields" from their 1993 album "Under a Funeral Moon" is
+included for testing.
This code is not great. It will be improved. It needs to be more configurable
from environment variables or options, for one thing.
@@ -14,8 +16,8 @@ This could maybe be used with `libnotify` or a similar desktop notification
tool to display lyrics in a corner as you work on other things. I've included a
simple Bash wrapper around `notify-send(1)` which works for me.
-An LRC file I made for Darkthrone's "To Walk The Infernal Fields" from their
-1993 album "Under a Funeral Moon" is included for testing.
+You can install both with `make install`. The default `PREFIX` is `/usr/local`.
+You may prefer `$HOME/.local`, like I do.
License
-------