-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
79 lines (62 loc) · 1.55 KB
/
Makefile.am
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
78
AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
ACLOCAL_AMFLAGS = -I m4
program = beanstalkd
bin_PROGRAMS = $(program)
aux_sources = \
binlog.c \
group.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.in \
group.h \
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 NEWS.md
dist_man_MANS = doc/beanstalkd.1
check-cut: tests/cutcheck
tests/cutcheck
check-shell: $(program)
SRCDIR=$(srcdir) $(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
sed -e 's/\@VERSION\@/$(VERSION)/' $(srcdir)/beanstalkd.spec.in > $(distdir)/beanstalkd.spec