-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
153 lines (133 loc) · 8.72 KB
/
Makefile
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
subdir-y = \
app \
src \
test
app_depends-y = \
src
test_depends-y = \
src
include Makefile.lib
install: app src test
install -d ${DESTDIR}/usr/local/bin
install -m 0755 dist/bin/mbus-version ${DESTDIR}/usr/local/bin/mbus-version
install -m 0755 dist/bin/mbus-benchmark ${DESTDIR}/usr/local/bin/mbus-benchmark
install -m 0755 dist/bin/mbus-broker ${DESTDIR}/usr/local/bin/mbus-broker
if [ -f dist/bin/mbus-client ]; then install -m 0755 dist/bin/mbus-client ${DESTDIR}/usr/local/bin/mbus-client; fi
install -m 0755 dist/bin/mbus-command ${DESTDIR}/usr/local/bin/mbus-command
install -m 0755 dist/bin/mbus-command.py ${DESTDIR}/usr/local/bin/mbus-command.py
install -m 0755 dist/bin/mbus-command.rb ${DESTDIR}/usr/local/bin/mbus-command.rb
install -m 0755 dist/bin/mbus-publish ${DESTDIR}/usr/local/bin/mbus-publish
install -m 0755 dist/bin/mbus-publish.py ${DESTDIR}/usr/local/bin/mbus-publish.py
install -m 0755 dist/bin/mbus-publish.rb ${DESTDIR}/usr/local/bin/mbus-publish.rb
install -m 0755 dist/bin/mbus-subscribe ${DESTDIR}/usr/local/bin/mbus-subscribe
install -m 0755 dist/bin/mbus-subscribe.py ${DESTDIR}/usr/local/bin/mbus-subscribe.py
install -m 0755 dist/bin/mbus-subscribe.rb ${DESTDIR}/usr/local/bin/mbus-subscribe.rb
install -m 0755 dist/bin/mbus-test-file-transfer ${DESTDIR}/usr/local/bin/mbus-test-file-transfer
install -m 0755 dist/bin/mbus-test-execute-command ${DESTDIR}/usr/local/bin/mbus-test-execute-command
install -m 0755 dist/bin/mbus-test-logger-publish ${DESTDIR}/usr/local/bin/mbus-test-logger-publish
install -m 0755 dist/bin/mbus-test-logger-subscribe ${DESTDIR}/usr/local/bin/mbus-test-logger-subscribe
install -m 0755 dist/bin/mbus-test-connect-interval ${DESTDIR}/usr/local/bin/mbus-test-connect-interval
install -d ${DESTDIR}/usr/local/include/mbus
install -m 0644 dist/include/mbus/buffer.h ${DESTDIR}/usr/local/include/mbus/buffer.h
install -m 0644 dist/include/mbus/client.h ${DESTDIR}/usr/local/include/mbus/client.h
install -m 0644 dist/include/mbus/clock.h ${DESTDIR}/usr/local/include/mbus/clock.h
install -m 0644 dist/include/mbus/compress.h ${DESTDIR}/usr/local/include/mbus/compress.h
install -m 0644 dist/include/mbus/debug.h ${DESTDIR}/usr/local/include/mbus/debug.h
install -m 0644 dist/include/mbus/json.h ${DESTDIR}/usr/local/include/mbus/json.h
install -m 0644 dist/include/mbus/method.h ${DESTDIR}/usr/local/include/mbus/method.h
install -m 0644 dist/include/mbus/server.h ${DESTDIR}/usr/local/include/mbus/server.h
install -m 0644 dist/include/mbus/socket.h ${DESTDIR}/usr/local/include/mbus/socket.h
install -m 0644 dist/include/mbus/tailq.h ${DESTDIR}/usr/local/include/mbus/tailq.h
install -m 0644 dist/include/mbus/version.h ${DESTDIR}/usr/local/include/mbus/version.h
install -d ${DESTDIR}/usr/local/lib
if [ -f dist/lib/libmbus-buffer.so ]; then install -m 0755 dist/lib/libmbus-buffer.so ${DESTDIR}/usr/local/lib/libmbus-buffer.so; fi
if [ -f dist/lib/libmbus-client.so ]; then install -m 0755 dist/lib/libmbus-client.so ${DESTDIR}/usr/local/lib/libmbus-client.so; fi
if [ -f dist/lib/libmbus-clock.so ]; then install -m 0755 dist/lib/libmbus-clock.so ${DESTDIR}/usr/local/lib/libmbus-clock.so; fi
if [ -f dist/lib/libmbus-compress.so ]; then install -m 0755 dist/lib/libmbus-compress.so ${DESTDIR}/usr/local/lib/libmbus-compress.so; fi
if [ -f dist/lib/libmbus-debug.so ]; then install -m 0755 dist/lib/libmbus-debug.so ${DESTDIR}/usr/local/lib/libmbus-debug.so; fi
if [ -f dist/lib/libmbus-json.so ]; then install -m 0755 dist/lib/libmbus-json.so ${DESTDIR}/usr/local/lib/libmbus-json.so; fi
if [ -f dist/lib/libmbus-json-cJSON.so ]; then install -m 0755 dist/lib/libmbus-json-cJSON.so ${DESTDIR}/usr/local/lib/libmbus-json-cJSON.so; fi
if [ -f dist/lib/libmbus-server.so ]; then install -m 0755 dist/lib/libmbus-server.so ${DESTDIR}/usr/local/lib/libmbus-server.so; fi
if [ -f dist/lib/libmbus-socket.so ]; then install -m 0755 dist/lib/libmbus-socket.so ${DESTDIR}/usr/local/lib/libmbus-socket.so; fi
if [ -f dist/lib/libmbus-version.so ]; then install -m 0755 dist/lib/libmbus-version.so ${DESTDIR}/usr/local/lib/libmbus-version.so; fi
install -d ${DESTDIR}/usr/local/lib
install -m 0644 dist/lib/libmbus-buffer.a ${DESTDIR}/usr/local/lib/libmbus-buffer.a
install -m 0644 dist/lib/libmbus-client.a ${DESTDIR}/usr/local/lib/libmbus-client.a
install -m 0644 dist/lib/libmbus-clock.a ${DESTDIR}/usr/local/lib/libmbus-clock.a
install -m 0644 dist/lib/libmbus-compress.a ${DESTDIR}/usr/local/lib/libmbus-compress.a
install -m 0644 dist/lib/libmbus-debug.a ${DESTDIR}/usr/local/lib/libmbus-debug.a
install -m 0644 dist/lib/libmbus-json.a ${DESTDIR}/usr/local/lib/libmbus-json.a
install -m 0644 dist/lib/libmbus-json-cJSON.a ${DESTDIR}/usr/local/lib/libmbus-json-cJSON.a
install -m 0644 dist/lib/libmbus-server.a ${DESTDIR}/usr/local/lib/libmbus-server.a
install -m 0644 dist/lib/libmbus-socket.a ${DESTDIR}/usr/local/lib/libmbus-socket.a
install -m 0644 dist/lib/libmbus-version.a ${DESTDIR}/usr/local/lib/libmbus-version.a
install -d ${DESTDIR}/usr/local/lib
install -m 0644 dist/lib/MBusClient.js ${DESTDIR}/usr/local/lib/MBusClient.js
install -m 0644 dist/lib/MBusClient.py ${DESTDIR}/usr/local/lib/MBusClient.py
install -m 0644 dist/lib/MBusClient.rb ${DESTDIR}/usr/local/lib/MBusClient.rb
install -d ${DESTDIR}/var/www/html/mbus
install -m 0644 dist/lib/MBusClient.js ${DESTDIR}/var/www/html/mbus/MBusClient.js
install -m 0644 app/subscribe/mbus-subscribe.html ${DESTDIR}/var/www/html/mbus/mbus-subscribe.html
install -d ${DESTDIR}/usr/local/lib/pkgconfig
sed 's?'prefix=/usr/local'?'prefix=${DESTDIR}/usr/local'?g' libmbus-client.pc > ${DESTDIR}/usr/local/lib/pkgconfig/libmbus-client.pc
sed 's?'prefix=/usr/local'?'prefix=${DESTDIR}/usr/local'?g' libmbus-server.pc > ${DESTDIR}/usr/local/lib/pkgconfig/libmbus-server.pc
sed 's?'prefix=/usr/local'?'prefix=${DESTDIR}/usr/local'?g' libmbus-json.pc > ${DESTDIR}/usr/local/lib/pkgconfig/libmbus-json.pc
uninstall:
rm -f ${DESTDIR}/usr/local/bin/mbus-version
rm -f ${DESTDIR}/usr/local/bin/mbus-benchmark
rm -f ${DESTDIR}/usr/local/bin/mbus-broker
rm -f ${DESTDIR}/usr/local/bin/mbus-client
rm -f ${DESTDIR}/usr/local/bin/mbus-command
rm -f ${DESTDIR}/usr/local/bin/mbus-command.py
rm -f ${DESTDIR}/usr/local/bin/mbus-command.rb
rm -f ${DESTDIR}/usr/local/bin/mbus-publish
rm -f ${DESTDIR}/usr/local/bin/mbus-publish.py
rm -f ${DESTDIR}/usr/local/bin/mbus-publish.rb
rm -f ${DESTDIR}/usr/local/bin/mbus-subscribe
rm -f ${DESTDIR}/usr/local/bin/mbus-subscribe.py
rm -f ${DESTDIR}/usr/local/bin/mbus-subscribe.rb
rm -f ${DESTDIR}/usr/local/include/mbus/buffer.h
rm -f ${DESTDIR}/usr/local/include/mbus/client.h
rm -f ${DESTDIR}/usr/local/include/mbus/clock.h
rm -f ${DESTDIR}/usr/local/include/mbus/compress.h
rm -f ${DESTDIR}/usr/local/include/mbus/debug.h
rm -f ${DESTDIR}/usr/local/include/mbus/json.h
rm -f ${DESTDIR}/usr/local/include/mbus/method.h
rm -f ${DESTDIR}/usr/local/include/mbus/server.h
rm -f ${DESTDIR}/usr/local/include/mbus/socket.h
rm -f ${DESTDIR}/usr/local/include/mbus/tailq.h
rm -f ${DESTDIR}/usr/local/include/mbus/version.h
rm -rf ${DESTDIR}/usr/local/include/mbus
rm -f ${DESTDIR}/usr/local/lib/libmbus-buffer.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-client.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-clock.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-compress.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-debug.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-json.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-json-cJSON.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-server.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-socket.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-version.so
rm -f ${DESTDIR}/usr/local/lib/libmbus-buffer.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-client.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-clock.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-compress.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-debug.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-json.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-json-cJSON.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-server.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-socket.a
rm -f ${DESTDIR}/usr/local/lib/libmbus-version.a
rm -f ${DESTDIR}/usr/local/lib/MBusClient.js
rm -f ${DESTDIR}/usr/local/lib/MBusClient.py
rm -f ${DESTDIR}/usr/local/lib/MBusClient.rb
rm -f ${DESTDIR}/usr/local/lib/pkgconfig/libmbus-server.pc
rm -f ${DESTDIR}/usr/local/lib/pkgconfig/libmbus-client.pc
rm -f ${DESTDIR}/usr/local/lib/pkgconfig/libmbus-json.pc
rm -f ${DESTDIR}/usr/local/bin/mbus-test-execute-command
rm -f ${DESTDIR}/usr/local/bin/mbus-test-file-transfer
rm -f ${DESTDIR}/usr/local/bin/mbus-test-logger-publish
rm -f ${DESTDIR}/usr/local/bin/mbus-test-logger-subscribe
rm -f ${DESTDIR}/usr/local/bin/mbus-test-connect-interval
rm -f ${DESTDIR}/var/www/html/mbus/MBusClient.js
rm -f ${DESTDIR}/var/www/html/mbus/mbus-subscribe.html