1 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
2 ACLOCAL_AMFLAGS = -I m4
6 bin_PROGRAMS = $(program)
23 beanstalkd_SOURCES = beanstalkd.c $(aux_sources)
25 EXTRA_PROGRAMS = cutgen
26 cutgen_SOURCES = cutgen.c
34 scripts/beanstalkd.init \
35 scripts/beanstalkd.sysconfig
41 EXTRA_DIST = cut.c $(tests) $(scripts) $(readme) cut.h sh-tests check.sh check-one.sh \
49 dist_doc_DATA = doc/protocol.txt
50 dist_man_MANS = doc/beanstalkd.1
53 printf '#define VERSION "%s"\n' "$(VERSION)" >$@
55 beanstalkd.c: version.h
57 check-cut: tests/cutcheck
60 check-shell: $(program)
61 SRCDIR=$(srcdir) $(srcdir)/check.sh $(srcdir)/sh-tests/*.sh
63 check: check-cut check-shell
65 tests/cutcheck.c: $(tests) cutgen
67 ./cutgen -o tests/cutcheck.c $(tests:%=$(srcdir)/%)
69 tests/cutcheck: tests/cutcheck.o cut.o $(aux_sources:.c=.o) $(tests:.c=.o)
70 $(LINK) $^ $(beanstalkd_LDADD) $(LIBS)
72 CLEANFILES = cutgen tests/cutcheck* tests/*.o
74 DISTCLEANFILES = core core.* gmon.out $(program)-*.tar.gz
77 echo -e '#!/bin/sh\n\n# This file was generated by "make dist".\necho $(VERSION)' > $(distdir)/version.sh
78 chmod +x $(distdir)/version.sh
79 sed -e 's/\@VERSION\@/$(VERSION)/' $(srcdir)/beanstalkd.spec.in > $(distdir)/beanstalkd.spec
80 cp $(srcdir)/NEWS.md $(distdir)/.