chiark / gitweb /
--wide-open option; better login failure logging
[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
21bin_PROGRAMS=disorder disorderfm
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 \
29 $(LIBDL) $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
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
460b9539 36
37filename_bytes_SOURCES=filename-bytes.c
38
320598d4
RK
39test_eclient_SOURCES=test-eclient.c \
40 ../lib/memgc.c
0b861e97 41test_eclient_LDADD=../lib/libdisorder.a \
42 $(LIBDL) $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
43test_eclient_DEPENDENCIES=../lib/libdisorder.a
460b9539 44
45install-exec-hook:
46 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
47
48check: check-help check-completions
49
50# check everything has working --help
51check-help: all
52 ./disorder --version > /dev/null
53 ./disorder --help > /dev/null
54 ./disorder --help-commands > /dev/null
55
56# check that the command completions are up to date
57check-completions:
58 ./disorder --help-commands \
59 | awk '/^ [a-z]/ { print $$1 }' \
60 | sort > ,commands
61 ( set -e;completions() { \
62 for x; do \
63 case $$x in\
64 quack ) ;;\
65 [a-z]* ) echo $$x; ;;\
66 esac;\
67 done;\
68 }; \
69 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
70 . ${top_srcdir}/scripts/completion.bash )\
71 | sort > ,completions
72 diff -u ,commands ,completions
73
74CLEANFILES=,commands ,completions