public
Description: Beanstalk is a simple, fast work queue.
Homepage: http://xph.us/software/beanstalkd/
Clone URL: git://github.com/kr/beanstalkd.git
Click here to lend your support to: beanstalkd and make a donation at www.pledgie.com !
beanstalkd / Makefile.am
100644 77 lines (59 sloc) 1.44 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
ACLOCAL_AMFLAGS = -I m4
 
program = beanstalkd
 
bin_PROGRAMS = $(program)
aux_sources = \
binlog.c \
conn.c \
job.c \
ms.c \
net.c \
port.c \
pq.c \
primes.c \
prot.c \
tube.c \
util.c
beanstalkd_SOURCES = beanstalkd.c $(aux_sources)
 
EXTRA_PROGRAMS = cutgen
cutgen_SOURCES = cutgen.c
 
tests = \
tests/test_job.c \
tests/test_pq.c
 
scripts = \
scripts/beanstalkd.init \
scripts/beanstalkd.sysconfig
 
readme = \
README-DEVELOPERS \
README-TESTS
 
EXTRA_DIST = cut.c $(tests) $(scripts) $(readme) cut.h sh-tests check.sh check-one.sh \
beanstalkd.spec \
binlog.h \
conn.h \
job.h \
ms.h \
net.h \
port.h \
pq.h \
primes.h \
prot.h \
stat.h \
tube.h \
util.h
 
dist_doc_DATA = doc/protocol.txt
dist_man_MANS = doc/beanstalkd.1
 
check-cut: tests/cutcheck
tests/cutcheck
 
check-shell: $(program)
$(srcdir)/check.sh $(srcdir)/sh-tests/*.{commands,sh}
 
check: check-cut check-shell
 
tests/cutcheck.c: $(tests) cutgen
mkdir -p tests
./cutgen -o tests/cutcheck.c $(tests:%=$(srcdir)/%)
 
tests/cutcheck: tests/cutcheck.o cut.o $(aux_sources:.c=.o) $(tests:.c=.o)
$(LINK) $^ $(beanstalkd_LDADD) $(LIBS)
 
CLEANFILES = cutgen tests/cutcheck* tests/*.o
 
DISTCLEANFILES = core core.* gmon.out $(program)-*.tar.gz
 
dist-hook:
echo -e '#!/bin/sh\n\n# This file was generated by "make dist".\necho $(VERSION)' > $(distdir)/version.sh
chmod +x $(distdir)/version.sh