-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGNUmakefile
74 lines (59 loc) · 1.61 KB
/
GNUmakefile
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
#
# GNU 'make'-file for building
#
# Ensure you have the following packages installed:
#
# zmq:
# sudo apt-get -u install libtool autoconf automake uuid-dev g++
#
# pyzmq:
# sudo apt-get -u install cython python-dev
#
# For building python py.test unit tests:
# sudo apt-get -u install python-setuptools
# sudo easy_install pytest
#
.PHONY: FORCE all zmq zmq-install pyzmq pyzmq-install
#ZMQVER := zeromq2-1
#ZMQVER := zeromq3-0
ZMQVER := libzmq
ZMQURI := git://github.com/pjkundert/$(ZMQVER).git
PYZURI := git://github.com/pjkundert/pyzmq.git
CUTURI := git://github.com/pjkundert/cut.git
all: pyzmq
test: ../cut zmq
@if [ ! -d $< ]; then \
git clone $(CUTURI) $<; \
fi
cd $@; make test
../$(ZMQVER):
git clone $(ZMQURI) $@
zmq: ../$(ZMQVER) FORCE
@if [ ! -r $</configure ]; then \
cd $<; ./autogen.sh; \
fi
@if [ ! -r $</Makefile ]; then \
cd $<;./configure; \
fi
cd $<; make V=1
zmq-clean:: ../$(ZMQVER) FORCE
cd $<; make -k distclean
zmq-clean:: ../$(ZMQVER) FORCE
cd $<; make clean
zmq-install: ../$(ZMQVER) FORCE
cd $<; sudo -n make install
zmq-test: ../$(ZMQVER) FORCE
cd $</tests/.lib; LD_LIBRARY_PATH=
../pyzmq:
git clone $(PYZURI) $@
pyzmq: ../pyzmq zmq FORCE
cd $<; python setup.py configure --zmq=/usr/local
cd $<; python setup.py build
pyzmq-clean: ../pyzmq FORCE
cd $<; python setup.py clean
pyzmq-install: ../pyzmq FORCE
cd $<; sudo -n python setup.py install
pyzmq-test: ../pyzmq FORCE
cd $<; python setup.py configure --zmq=/usr/local
cd $<; python setup.py build_ext --inplace
cd $<; python setup.py test