chiark / gitweb /
make -j safe clients/Makefile.am
[disorder] / clients / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
622cdeda 3# Copyright (C) 2006, 2007 Richard Kettlewell
460b9539 4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18# USA
19#
20
0b75463f 21bin_PROGRAMS=disorder disorderfm disorder-playrtp
460b9539 22noinst_PROGRAMS=test-eclient filename-bytes
23
24AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
25
320598d4
RK
26disorder_SOURCES=disorder.c authorize.c authorize.h \
27 ../lib/memgc.c
0b861e97 28disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
f08c0859 29 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
0b861e97 30disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 31
320598d4
RK
32disorderfm_SOURCES=disorderfm.c \
33 ../lib/memgc.c
3a8b42d3 34disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
0b861e97 35disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
0b75463f 36
c593cf7c 37disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c \
cfa7dda1 38 playrtp-alsa.c playrtp-coreaudio.c playrtp-oss.c
9086a105 39disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
a7e9570a 40 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO)
0b75463f 41disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 42
43filename_bytes_SOURCES=filename-bytes.c
44
320598d4
RK
45test_eclient_SOURCES=test-eclient.c \
46 ../lib/memgc.c
0b861e97 47test_eclient_LDADD=../lib/libdisorder.a \
f08c0859 48 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
0b861e97 49test_eclient_DEPENDENCIES=../lib/libdisorder.a
460b9539 50
51install-exec-hook:
52 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
53
54check: check-help check-completions
55
56# check everything has working --help
57check-help: all
58 ./disorder --version > /dev/null
59 ./disorder --help > /dev/null
60 ./disorder --help-commands > /dev/null
ba789897
RK
61 ./disorderfm --version > /dev/null
62 ./disorderfm --help > /dev/null
63 ./disorder-playrtp --version > /dev/null
64 ./disorder-playrtp --help > /dev/null
460b9539 65
66# check that the command completions are up to date
69669351 67check-completions: disorder
460b9539 68 ./disorder --help-commands \
69 | awk '/^ [a-z]/ { print $$1 }' \
70 | sort > ,commands
71 ( set -e;completions() { \
72 for x; do \
73 case $$x in\
74 quack ) ;;\
75 [a-z]* ) echo $$x; ;;\
76 esac;\
77 done;\
78 }; \
79 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
80 . ${top_srcdir}/scripts/completion.bash )\
81 | sort > ,completions
82 diff -u ,commands ,completions
83
84CLEANFILES=,commands ,completions