diff --git a/Makefile.am b/Makefile.am
index 50f0f11badf692b3120d9365d54c5f050420e2a1..cb3149ff7bf15385a46fc9c4f1aab474b5d0ae9a 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
-#
-# $Id: Makefile.am,v 1.5 2004/03/16 23:49:14 kalle Exp $
-#
+SUBDIRS = \
+ src\
+ doc\
+ po
+
+ACLOCAL_AMFLAGS = -I m4
+AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
-bin_PROGRAMS = ncmpc
-pkgdata_DATA =
-docdir = $(prefix)/share/doc/$(PACKAGE)
-doc_DATA = AUTHORS README ChangeLog
-EXTRA_DIST = COPYING $(pkgdata_DATA) $(doc_DATA)
+doc_DATA = \
+ AUTHORS\
+ README\
+ NEWS
-SUBDIRS = doc
+EXTRA_DIST = autogen.sh $(addprefix lyrics/,$(lyrics_plugins))
-#EXTRA_ncmpc_SOURCES =
-#ncmpc_LDADD =
-#ncmpc_DEPENDENCIES =
+# build the smalles possible ncmpc binary
+ncmpc-tiny:
+ $(MAKE) -C src $@
-ncmpc_headers = libmpdclient.h mpc.h options.h conf.h command.h screen.h \
- screen_utils.h screen_play.h screen_file.h screen_search.h \
- screen_help.h list_window.h support.h
+sparse-check:
+ $(MAKE) -C src $@
-ncmpc_SOURCES = libmpdclient.c main.c mpc.c options.c conf.c command.c \
- screen.c screen_utils.c screen_play.c screen_file.c \
- screen_search.c screen_help.c \
- list_window.c support.c $(ncmpc_headers)
+#
+# lyrics plugins
+#
+lyrics_plugins = 01-hd.sh 02-lyricwiki.rb 03-leoslyrics.py
+if ENABLE_LYRICS_SCREEN
+install-exec-local:
+ install -m 0755 -d $(DESTDIR)$(lyrics_plugin_dir)
+ cd lyrics && install -m 0755 $(lyrics_plugins) $(DESTDIR)$(lyrics_plugin_dir)
+endif