1 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
2 ACLOCAL_AMFLAGS = -I m4
6 bin_PROGRAMS = $(program)
19 beanstalkd_SOURCES = beanstalkd.c $(aux_sources)
21 EXTRA_PROGRAMS = cutgen
22 cutgen_SOURCES = cutgen.c
28 EXTRA_DIST = cut.c $(tests) cut.h sh-tests check.sh check-one.sh \
42 dist_doc_DATA = doc/protocol.txt
43 dist_man_MANS = doc/beanstalkd.1
45 check-cut: tests/cutcheck
48 check-shell: $(program)
49 $(srcdir)/check.sh $(srcdir)/sh-tests/*.{commands,sh}
51 check: check-cut check-shell
53 tests/cutcheck.c: $(tests) cutgen
55 ./cutgen -o tests/cutcheck.c $(tests:%=$(srcdir)/%)
57 tests/cutcheck: tests/cutcheck.o cut.o $(aux_sources:.c=.o) $(tests:.c=.o)
58 $(LINK) $^ $(beanstalkd_LDADD) $(LIBS)
60 CLEANFILES = cutgen tests/cutcheck* tests/*.o
62 DISTCLEANFILES = core core.* gmon.out $(program)-*.tar.gz
65 echo -e '#!/bin/sh\n\n# This file was generated by "make dist".\necho $(VERSION)' > $(distdir)/version.sh
66 chmod +x $(distdir)/version.sh