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