New command: kick-job.
[beanstalkd.git] / Makefile
blobb51073447453832cd1e15adea91246b8d14d713a
1 include mk/inc
3 VERS=$(shell mk/vers.sh)
4 TARG=beanstalkd
5 MOFILE=main.o
6 OFILES=\
7 conn.o\
8 file.o\
9 heap.o\
10 job.o\
11 ms.o\
12 net.o\
13 port-$(OS).o\
14 primes.o\
15 prot.o\
16 sd-daemon.o\
17 sock-$(OS).o\
18 srv.o\
19 time.o\
20 tube.o\
21 util.o\
22 vers.o\
23 walg.o\
25 TOFILES=\
26 heap-test.o\
27 integ-test.o\
28 job-test.o\
29 util-test.o\
31 HFILES=\
32 dat.h\
33 sd-daemon.h\
35 CLEANFILES=\
36 vers.c\
37 $(TARG)-*.tar.gz\
39 include mk/cmd
40 include mk/tst
42 vers.c:
43 mk/verc.sh >vers.c
44 ifneq ($(shell mk/verc.sh),$(shell cat vers.c 2>/dev/null))
45 .PHONY: vers.c
46 endif
48 dist: $(TARG)-$(VERS).tar.gz
49 .PHONY: dist
51 $(TARG)-$(VERS).tar:
52 git archive -o $@ --prefix=$(TARG)-$(VERS)/ v$(VERS)
53 mkdir -p $(TARG)-$(VERS)/mk
54 echo 'printf "$(VERS)"' >$(TARG)-$(VERS)/mk/vers.sh
55 chmod +x $(TARG)-$(VERS)/mk/vers.sh
56 $(TAR) --append -f $@ $(TARG)-$(VERS)/mk/vers.sh
57 sed 's/@VERSION@/$(VERS)/' <pkg/beanstalkd.spec.in >$(TARG)-$(VERS)/beanstalkd.spec
58 $(TAR) --append -f $@ $(TARG)-$(VERS)/beanstalkd.spec
59 cp NEWS.md $(TARG)-$(VERS)/NEWS.md
60 $(TAR) --append -f $@ $(TARG)-$(VERS)/NEWS.md
61 rm -r $(TARG)-$(VERS)
63 $(TARG)-$(VERS).tar.gz: $(TARG)-$(VERS).tar
64 gzip -f $<
66 doc/beanstalkd.1 doc/beanstalkd.1.html: doc/beanstalkd.ronn
67 ronn $<