From 6fabb44f8b5d9615fd316bac87133d4b5ce69a3b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 16:03:44 +0200 Subject: [PATCH] Makefile: don't install disabled lyrics plugins Don't install the lyrics plugins if the lyrics screen is disabled. --- Makefile.am | 4 ++++ configure.ac | 2 ++ 2 files changed, 6 insertions(+) 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], -- 2.30.2