aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-25 16:03:44 +0200
committerMax Kellermann <max@duempel.org>2008-09-25 16:03:44 +0200
commit6fabb44f8b5d9615fd316bac87133d4b5ce69a3b (patch)
treef4f701497ff177c3924b5acc1df4ed95a0dbad04
parent9ccdbcf58f7cda5fc04b8f1a801aeb18b61e1ca9 (diff)
downloadmpd-6fabb44f8b5d9615fd316bac87133d4b5ce69a3b.tar.gz
mpd-6fabb44f8b5d9615fd316bac87133d4b5ce69a3b.tar.xz
mpd-6fabb44f8b5d9615fd316bac87133d4b5ce69a3b.zip
Makefile: don't install disabled lyrics plugins
Don't install the lyrics plugins if the lyrics screen is disabled.
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 8024b0775..e4f289585 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,9 +23,13 @@ EXTRA_DIST = \
# lyrics plugins
#
+if LYRICS
+
lyrics_plugin_dir = @lyrics_plugin_dir@
lyrics_plugins = hd.py leoslyrics.py lyricswiki.rb
install-exec-local:
install -m 0755 -d $(DESTDIR)$(lyrics_plugin_dir)
install -m 0755 $(addprefix lyrics/,$(lyrics_plugins)) $(DESTDIR)$(lyrics_plugin_dir)
+
+endif
diff --git a/configure.ac b/configure.ac
index 681a80ac9..4084efd2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,6 +254,8 @@ if test "x$lyrics_screen" != "xyes" ; then
lyrics_screen=no
fi
+AM_CONDITIONAL(LYRICS, test x$lyrics_screen = xyes)
+
AC_MSG_RESULT([$lyrics_screen])
AC_ARG_WITH([lyrics-plugin-dir],