From 531c7440adb7f5fb295458dca6ba03e6f08fa9a2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 5 Dec 2015 13:05:56 +1300 Subject: Add a Makefile --- Makefile | 9 +++++++++ README.markdown | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 Makefile 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`: 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 ------- -- cgit v1.2.3