1 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
2 ACLOCAL_AMFLAGS = -I m4
6 bin_PROGRAMS = $(program)
18 beanstalkd_SOURCES = beanstalkd.c $(aux_sources)
24 EXTRA_DIST = cut.c cutgen.c $(tests) cut.h sh-tests check.sh check-one.sh \
37 dist_doc_DATA = doc/protocol.txt
38 dist_man_MANS = doc/beanstalkd.1
40 check-cut: tests/cutcheck
43 check-shell: $(program)
44 $(srcdir)/check.sh $(srcdir)/sh-tests/*.{commands,sh}
46 check: check-cut check-shell
50 tests/cutcheck.c: $(tests) cutgen
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
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