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
29 scripts/beanstalkd.init \
30 scripts/beanstalkd.sysconfig
36 EXTRA_DIST = cut.c $(tests) $(scripts) $(readme) cut.h sh-tests check.sh check-one.sh \
51 dist_doc_DATA = doc/protocol.txt
52 dist_man_MANS = doc/beanstalkd.1
54 check-cut: tests/cutcheck
57 check-shell: $(program)
58 $(srcdir)/check.sh $(srcdir)/sh-tests/*.{commands,sh}
60 check: check-cut check-shell
62 tests/cutcheck.c: $(tests) cutgen
64 ./cutgen -o tests/cutcheck.c $(tests:%=$(srcdir)/%)
66 tests/cutcheck: tests/cutcheck.o cut.o $(aux_sources:.c=.o) $(tests:.c=.o)
67 $(LINK) $^ $(beanstalkd_LDADD) $(LIBS)
69 CLEANFILES = cutgen tests/cutcheck* tests/*.o
71 DISTCLEANFILES = core core.* gmon.out $(program)-*.tar.gz
74 echo -e '#!/bin/sh\n\n# This file was generated by "make dist".\necho $(VERSION)' > $(distdir)/version.sh
75 chmod +x $(distdir)/version.sh