From: Max Kellermann Date: Thu, 25 Sep 2008 14:03:44 +0000 (+0200) Subject: Makefile: don't install disabled lyrics plugins X-Git-Tag: v0.12_alpha1~168 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6fabb44f8b5d9615fd316bac87133d4b5ce69a3b;p=ncmpc.git Makefile: don't install disabled lyrics plugins Don't install the lyrics plugins if the lyrics screen is disabled. --- diff --git a/Makefile.am b/Makefile.am index 8024b07..e4f2895 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 681a80a..4084efd 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],