Code

Update copyright notices
[ncmpc.git] / Makefile.am
index 8ac5da7de15cb5e3b3b8e83a45ada462d78707bb..af1e02091c299e58a0672863d4581a23dcb754f0 100644 (file)
@@ -1,28 +1,35 @@
-#
-# $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
+# build the smalles possible ncmpc binary
+ncmpc-tiny:
+       $(MAKE) -C src $@
 
-#EXTRA_ncmpc_SOURCES = 
-#ncmpc_LDADD = 
-#ncmpc_DEPENDENCIES = 
+sparse-check:
+       $(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 colors.h support.h 
+#
+# lyrics plugins
+#
 
-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 screen_keydef.c \
-                      list_window.c colors.c support.c $(ncmpc_headers)
+lyrics_plugins = hd.sh leoslyrics.py lyricswiki.rb
 
+EXTRA_DIST = $(addprefix lyrics/,$(lyrics_plugins))
 
+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