1 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
5 bin_PROGRAMS = $(program)
17 beanstalkd_SOURCES = beanstalkd.c $(aux_sources)
20 $(srcdir)/tests/test_job.c \
21 $(srcdir)/tests/test_pq.c
23 EXTRA_DIST = cut.c cutgen.c $(tests) cut.h sh-tests check.sh check-one.sh \
36 dist_doc_DATA = doc/protocol.txt
37 dist_man_MANS = doc/beanstalkd.1
39 check-cut: tests/cutcheck
42 check-shell: $(program)
43 $(srcdir)/check.sh $(srcdir)/sh-tests/*.commands
45 check: check-cut check-shell
49 tests/cutcheck.c: $(tests) cutgen
51 ./cutgen -o tests/cutcheck.c $(tests)
53 tests/cutcheck: tests/cutcheck.o cut.o $(aux_sources:.c=.o) $(tests:.c=.o)
54 $(LINK) $^ $(beanstalkd_LDADD) $(LIBS)
56 CLEANFILES = cutgen tests/cutcheck* tests/*.o
58 DISTCLEANFILES = core core.* gmon.out $(program)-*.tar.gz
61 echo -e '#!/bin/sh\n\n# This file was generated by "make dist".\necho $(VERSION)' > $(distdir)/version.sh
62 chmod +x $(distdir)/version.sh