Update comment.
[beanstalkd.git] / Makefile.am
blob6cbaf3a6897a44fd7b7196874af9380ac8d51b27
1 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
2 ACLOCAL_AMFLAGS = -I m4
4 program = beanstalkd
6 bin_PROGRAMS = $(program)
7 aux_sources = \
8         binlog.c \
9         conn.c \
10         job.c \
11         ms.c \
12         net.c \
13         pq.c \
14         primes.c \
15         prot.c \
16         tube.c \
17         util.c
18 beanstalkd_SOURCES = beanstalkd.c $(aux_sources)
20 tests = \
21         tests/test_job.c \
22         tests/test_pq.c
24 EXTRA_DIST = cut.c cutgen.c $(tests) cut.h sh-tests check.sh check-one.sh \
25         binlog.h \
26         conn.h \
27         job.h \
28         ms.h \
29         net.h \
30         pq.h \
31         primes.h \
32         prot.h \
33         stat.h \
34         tube.h \
35         util.h
37 dist_doc_DATA = doc/protocol.txt
38 dist_man_MANS = doc/beanstalkd.1
40 check-cut: tests/cutcheck 
41         tests/cutcheck
43 check-shell: $(program)
44         $(srcdir)/check.sh $(srcdir)/sh-tests/*.{commands,sh}
46 check: check-cut check-shell
48 cutgen: cutgen.c
50 tests/cutcheck.c: $(tests) cutgen
51         mkdir -p tests
52         ./cutgen -o tests/cutcheck.c $(tests:%=$(srcdir)/%)
54 tests/cutcheck: tests/cutcheck.o cut.o $(aux_sources:.c=.o) $(tests:.c=.o)
55         $(LINK) $^ $(beanstalkd_LDADD) $(LIBS)
57 CLEANFILES = cutgen tests/cutcheck* tests/*.o
59 DISTCLEANFILES = core core.* gmon.out $(program)-*.tar.gz
61 dist-hook:
62         echo -e '#!/bin/sh\n\n# This file was generated by "make dist".\necho $(VERSION)' > $(distdir)/version.sh
63         chmod +x $(distdir)/version.sh