Code

configure.ac: disable NLS in mini mode
[ncmpc.git] / Makefile.am
index e4f289585c7f032eab7f2984c1f59399e516e66a..9e4e6a2596e38823b3b09553f4c071255ef15205 100644 (file)
@@ -4,11 +4,7 @@ SUBDIRS = \
   po
 
 ACLOCAL_AMFLAGS = -I m4
-AUTOMAKE_OPTIONS =   gnu 1.6
-
-# $Id$
-
-docdir = $(prefix)/share/doc/$(PACKAGE)
+AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
 
 doc_DATA = \
   AUTHORS\
@@ -18,18 +14,25 @@ doc_DATA = \
 EXTRA_DIST = \
   $(doc_DATA)
 
+# build the smalles possible ncmpc binary
+ncmpc-tiny:
+       $(MAKE) -C src $@
+
+sparse-check:
+       $(MAKE) -C src $@
 
 #
 # lyrics plugins
 #
 
-if LYRICS
+lyrics_plugins = hd.sh leoslyrics.py lyricswiki.rb
+
+EXTRA_DIST += $(addprefix lyrics/,$(lyrics_plugins))
 
-lyrics_plugin_dir = @lyrics_plugin_dir@
-lyrics_plugins = hd.py leoslyrics.py lyricswiki.rb
+if ENABLE_LYRICS_SCREEN
 
 install-exec-local:
        install -m 0755 -d $(DESTDIR)$(lyrics_plugin_dir)
-       install -m 0755 $(addprefix lyrics/,$(lyrics_plugins)) $(DESTDIR)$(lyrics_plugin_dir)
+       cd lyrics && install -m 0755 $(lyrics_plugins) $(DESTDIR)$(lyrics_plugin_dir)
 
 endif