-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
642 lines (580 loc) · 32.8 KB
/
Makefile.in
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# Copyright 2007-2011 Zuse Institute Berlin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ERLC = @ERLC@
ERL = @ERL@
DIALYZER = @ERLANG_ROOT_DIR@/bin/dialyzer
ERL_LIB_DIR = @ERLANG_LIB_DIR@
SVN = svn
CD = cd
MAKE = make
VERSION=@PACKAGE_VERSION@
OTP_ERLANG_VERSION=1.5.4
COMMONS_CLI_VERSION=1.2
.PHONY: all compile test test-vts java java-test java-bench java-* python python-compile python-clean python-test python-bench python-doc-html python-doc-pdf python3 python3-convert python3-compile python3-clean python3-test python3-bench ruby-test interop-test clean docs svn dialyzer dialyzer-all rrd-init install install-all install-erlang install-java install-docs install-java-doc install-python-doc-html install-python-doc-pdf install-ruby install-python install-python3 test-clean install-one %_SUITE %_SUITE-dialyzer
YAWS_PATH= /usr/local/lib/yaws
APP_NAME = @PACKAGE_TARNAME@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
VSN = $Id$
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
# /bin
BINDIR = $(DESTDIR)@bindir@
# /etc/scalaris/
ETCDIR = $(DESTDIR)@sysconfdir@/scalaris
# /etc/init.d/
INITDIR = $(DESTDIR)@sysconfdir@/init.d
# /lib/scalaris/
SCALARISDIR = $(DESTDIR)@libdir@/scalaris
# /lib/scalaris/ebin
BEAMDIR = $(DESTDIR)@libdir@/scalaris/ebin
# /lib/scalaris/docroot
DOCROOTDIR=$(SCALARISDIR)/docroot
# /share/doc/scalaris
DOCDIR=$(DESTDIR)@docdir@
# /share/java
JAVADIR=$(DESTDIR)@datarootdir@/java
# /var/log/scalaris
LOGDIR=$(DESTDIR)@localstatedir@/log/scalaris
# /usr/lib/ruby/site_ruby/1.8
RUBYSITELIBDIR=$(DESTDIR)@RUBYSITELIBDIR@
# /usr/lib/python2.7/site-packages
PYTHONSITELIBDIR=$(DESTDIR)@PYTHONSITELIBDIR@
# /usr/lib/python3.1/site-packages
PYTHON3SITELIBDIR=$(DESTDIR)@PYTHON3SITELIBDIR@
# paths of source files for make doc
SOURCEPATHS_ERL=src/* src/*/* include/* test/* contrib/log4erl/src/* contrib/yaws/src/*
# libraries needed to build a plt suitable for the dialyzer target
DIALYZER_PLT_LIBS=$(ERL_LIB_DIR)/common_test-*/ebin $(ERL_LIB_DIR)/compiler-*/ebin $(ERL_LIB_DIR)/crypto-*/ebin $(ERL_LIB_DIR)/debugger-*/ebin $(ERL_LIB_DIR)/edoc-*/ebin $(ERL_LIB_DIR)/erts-*/ebin $(ERL_LIB_DIR)/et-*/ebin $(ERL_LIB_DIR)/gs-*/ebin $(ERL_LIB_DIR)/hipe-*/ebin $(ERL_LIB_DIR)/inets-*/ebin $(ERL_LIB_DIR)/kernel-*/ebin $(ERL_LIB_DIR)/mnesia-*/ebin $(ERL_LIB_DIR)/observer-*/ebin $(ERL_LIB_DIR)/public_key-*/ebin/ $(ERL_LIB_DIR)/runtime_tools-*/ebin $(ERL_LIB_DIR)/sasl-*/ebin $(ERL_LIB_DIR)/snmp-*/ebin $(ERL_LIB_DIR)/ssh-*/ebin $(ERL_LIB_DIR)/ssl-*/ebin $(ERL_LIB_DIR)/stdlib-*/ebin $(ERL_LIB_DIR)/syntax_tools-*/ebin $(ERL_LIB_DIR)/test_server-*/ebin/ $(ERL_LIB_DIR)/tools-*/ebin $(ERL_LIB_DIR)/webtool-*/ebin $(ERL_LIB_DIR)/wx-*/ebin $(ERL_LIB_DIR)/xmerl-*/ebin contrib/log4erl/ebin contrib/yaws/ebin
#DIALYZER_PLT_LIBS=$(DIALYZER_PLT_LIBS) $(ERL_LIB_DIR)/gs-*/contribs/ebin $(ERL_LIB_DIR)/wx-*/examples/*
SCALARIS_CT_NAME ?= ct
# for java-test and java-bench:
SCALARIS_UNITTEST_PORT ?= 14194
SCALARIS_UNITTEST_YAWS_PORT ?= 8000
SCALARIS_JTEST_NAME ?= jtest_boot
# replicas for key 0 in rt_chord:
REPLICA_KEY_1 = 0
REPLICA_KEY_2 = 85070591730234615865843651857942052864
REPLICA_KEY_3 = 170141183460469231731687303715884105728
REPLICA_KEY_4 = 255211775190703847597530955573826158592
all: compile
#all: compile dialyzer java test docs
#cp priv/xbin/*beam bin/
compile:
@$(ERL) -pa contrib/yaws -pa ebin -noinput +B -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
test-all: test java-test python-test interop-test db_verify_use_SUITE performance_SUITE benchmark_SUITE java-bench python-bench
test: compile
@RUN_TEST@ $(UNITTESTARGS) -name $(SCALARIS_CT_NAME) @ERLANG_TOKE_FLAGS@ -pa `pwd`/ebin `pwd`/contrib/yaws/ebin `pwd`/contrib/log4erl/ebin -spec test/scalaris.runtests-default.cfg | tee ct.log ; \
grep " 0 failed" ct.log
test-with-cover: compile
@RUN_TEST@ $(UNITTESTARGS) -name $(SCALARIS_CT_NAME) @ERLANG_TOKE_FLAGS@ -pa `pwd`/ebin `pwd`/contrib/yaws/ebin `pwd`/contrib/log4erl/ebin -spec test/scalaris.runtests-default.cfg -cover test/scalaris.coverspec | tee ct.log ; \
grep " 0 failed" ct.log
%_SUITE: compile
@RUN_TEST@ $(UNITTESTARGS) -name $(SCALARIS_CT_NAME)_$@ @ERLANG_TOKE_FLAGS@ -pa `pwd`/ebin `pwd`/contrib/yaws/ebin `pwd`/contrib/log4erl/ebin -suite $@ | tee ct.log ; \
grep " 0 failed" ct.log
test-vts: compile
@RUN_TEST@ @ERLANG_TOKE_FLAGS@ -pa `pwd`/ebin `pwd`/contrib/yaws/ebin `pwd`/contrib/log4erl/ebin -dir . -cover test/scalaris.coverspec -vts -browser @BROWSER@
test-clean:
-rm -rf ct_run.*@* ct.log index.html all_runs.html variables-*@* \
result_increment_10_1000.txt result_increment_1_10000.txt \
result_read_10_10000.txt result_read_1_100000.txt \
data/ct*@*
bench: compile
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_1) -n "ebench_boot" \
-p $(SCALARIS_UNITTEST_PORT) -y $(SCALARIS_UNITTEST_YAWS_PORT) -m -s -f start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_2) -n "ebench_node1" \
-p $$(($(SCALARIS_UNITTEST_PORT)+1)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+1)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_3) -n "ebench_node2" \
-p $$(($(SCALARIS_UNITTEST_PORT)+2)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+2)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_4) -n "ebench_node3" \
-p $$(($(SCALARIS_UNITTEST_PORT)+3)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+3)) -s start ; \
sleep 5s ; \
erl -setcookie "chocolate chip cookie" -name bench_$(RANDOM) -pa ebin/ -noinput -eval "rpc:call('ebench_boot@`hostname -f`', bench, increment, [10, 500]), halt(0)."; \
./bin/scalarisctl -n "ebench_boot" stop ; \
./bin/scalarisctl -n "ebench_node1" stop ; \
./bin/scalarisctl -n "ebench_node2" stop ; \
./bin/scalarisctl -n "ebench_node3" stop ; \
true
java:
ant -buildfile java-api/build.xml jar
java-test: compile java
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d \
-y $(SCALARIS_UNITTEST_YAWS_PORT) \
-p $(SCALARIS_UNITTEST_PORT) \
-n $(SCALARIS_JTEST_NAME) -m -s -f start ; \
sleep 5s ; \
ant -Dscalaris.node="$(SCALARIS_JTEST_NAME)@localhost" -buildfile java-api/build.xml test ; \
FAILED=$$? ; \
./bin/scalarisctl -n "$(SCALARIS_JTEST_NAME)" stop ; \
if [ $$FAILED -ne 0 ]; then \
echo "####################" ; \
echo "Erlang messages (last 50 per log file):" ; \
echo "####################" ; \
tail -n 50 log/$(SCALARIS_JTEST_NAME)/* ; \
echo "####################" ; \
false ; \
else \
true ; \
fi
java-bench: compile java
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_1) -n "jbench_boot" \
-p $(SCALARIS_UNITTEST_PORT) -y $(SCALARIS_UNITTEST_YAWS_PORT) -m -s -f start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_2) -n "jbench_node1" \
-p $$(($(SCALARIS_UNITTEST_PORT)+1)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+1)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_3) -n "jbench_node2" \
-p $$(($(SCALARIS_UNITTEST_PORT)+2)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+2)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_4) -n "jbench_node3" \
-p $$(($(SCALARIS_UNITTEST_PORT)+3)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+3)) -s start ; \
sleep 5s ; \
SCALARIS_JAPI_NODE="jbench_boot@localhost jbench_node1@localhost jbench_node2@localhost jbench_node3@localhost" ./java-api/scalaris --noconfig -b $(SCALARIS_BENCHMARKS); \
./bin/scalarisctl -n "jbench_boot" stop ; \
./bin/scalarisctl -n "jbench_node1" stop ; \
./bin/scalarisctl -n "jbench_node2" stop ; \
./bin/scalarisctl -n "jbench_node3" stop ; \
true
java-%:
ant -buildfile java-api/build.xml $*
python: python-compile
python-compile:
python -mcompileall python-api
python -O -mcompileall python-api
python-clean:
rm -f python-api/*.py
rm -f python-api/*.pyc
rm -f python-api/*.pyo
python-test: compile python
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d \
-y $(SCALARIS_UNITTEST_YAWS_PORT) \
-p $(SCALARIS_UNITTEST_PORT) \
-n $(SCALARIS_JTEST_NAME) -m -s -f start ; \
sleep 5s ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" python-api/scalaris_test.py ; \
FAILED=$$? ; \
./bin/scalarisctl -n "$(SCALARIS_JTEST_NAME)" stop ; \
if [ $$FAILED -ne 0 ]; then \
echo "####################" ; \
echo "Erlang messages (last 50 per log file):" ; \
echo "####################" ; \
tail -n 50 log/$(SCALARIS_JTEST_NAME)/* ; \
echo "####################" ; \
false ; \
else \
true ; \
fi
python-bench: compile python
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_1) -n "pbench_boot" \
-p $(SCALARIS_UNITTEST_PORT) -y $(SCALARIS_UNITTEST_YAWS_PORT) -m -s -f start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_2) -n "pbench_node1" \
-p $$(($(SCALARIS_UNITTEST_PORT)+1)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+1)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_3) -n "pbench_node2" \
-p $$(($(SCALARIS_UNITTEST_PORT)+2)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+2)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_4) -n "pbench_node3" \
-p $$(($(SCALARIS_UNITTEST_PORT)+3)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+3)) -s start ; \
sleep 5s ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" python-api/scalaris_bench.py $(SCALARIS_BENCHMARKS); \
./bin/scalarisctl -n "pbench_boot" stop ; \
./bin/scalarisctl -n "pbench_node1" stop ; \
./bin/scalarisctl -n "pbench_node2" stop ; \
./bin/scalarisctl -n "pbench_node3" stop ; \
true
python-doc-html:
cd python-api ; epydoc --config=epydoc.html.cfg ; FAILED=$$? ; cd .. ; \
if [ $$FAILED -ne 0 ]; then false ; else true ; fi
python-doc-pdf:
cd python-api ; epydoc --config=epydoc.pdf.cfg ; FAILED=$$? ; cd .. ; \
if [ $$FAILED -ne 0 ]; then false ; else true ; fi
python3: python3-compile
python3-convert: python3-clean
if [ ! -d python3-api ]; then \
mkdir -p python3-api ; \
fi
cp python-api/*.py python3-api/
cd python3-api && 2to3 -f all -f buffer -w -n . >/dev/null
sed -i -e "s|#!/usr/bin/python|#!/usr/bin/python3|g" python3-api/*.py
python3-compile: python3-convert
python3 -mcompileall python3-api
python3 -O -mcompileall python3-api
python3-clean:
if [ -d python3-api ]; then \
rm -f python3-api/*.py ; \
rm -f python3-api/*.pyc ; \
rm -f python3-api/*.pyo ; \
if [ -d python3-api/__pycache__ ]; then \
rm -f python3-api/__pycache__/*.py ; \
rm -f python3-api/__pycache__/*.pyc ; \
rm -f python3-api/__pycache__/*.pyo ; \
rmdir --ignore-fail-on-non-empty python3-api/__pycache__ ; \
fi ; \
rmdir --ignore-fail-on-non-empty python3-api/ ; \
fi
python3-test: compile python3
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d \
-y $(SCALARIS_UNITTEST_YAWS_PORT) \
-p $(SCALARIS_UNITTEST_PORT) \
-n $(SCALARIS_JTEST_NAME) -m -s -f start ; \
sleep 5s ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" python3-api/scalaris_test.py ; \
FAILED=$$? ; \
./bin/scalarisctl -n "$(SCALARIS_JTEST_NAME)" stop ; \
if [ $$FAILED -ne 0 ]; then \
echo "####################" ; \
echo "Erlang messages (last 50 per log file):" ; \
echo "####################" ; \
tail -n 50 log/$(SCALARIS_JTEST_NAME)/* ; \
echo "####################" ; \
false ; \
else \
true ; \
fi
python3-bench: compile python3
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_1) -n "p3bench_boot" \
-p $(SCALARIS_UNITTEST_PORT) -y $(SCALARIS_UNITTEST_YAWS_PORT) -m -s -f start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_2) -n "p3bench_node1" \
-p $$(($(SCALARIS_UNITTEST_PORT)+1)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+1)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_3) -n "p3bench_node2" \
-p $$(($(SCALARIS_UNITTEST_PORT)+2)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+2)) -s start ; \
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d -k $(REPLICA_KEY_4) -n "p3bench_node3" \
-p $$(($(SCALARIS_UNITTEST_PORT)+3)) -y $$(($(SCALARIS_UNITTEST_YAWS_PORT)+3)) -s start ; \
sleep 5s ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" python3-api/scalaris_bench.py $(SCALARIS_BENCHMARKS); \
./bin/scalarisctl -n "p3bench_boot" stop ; \
./bin/scalarisctl -n "p3bench_node1" stop ; \
./bin/scalarisctl -n "p3bench_node2" stop ; \
./bin/scalarisctl -n "p3bench_node3" stop ; \
true
ruby-test: compile
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d \
-y $(SCALARIS_UNITTEST_YAWS_PORT) \
-p $(SCALARIS_UNITTEST_PORT) \
-n $(SCALARIS_JTEST_NAME) -m -s -f start ; \
sleep 5s ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" ruby-api/scalaris_test.rb ; \
FAILED=$$? ; \
./bin/scalarisctl -n "$(SCALARIS_JTEST_NAME)" stop ; \
if [ $$FAILED -ne 0 ]; then \
echo "####################" ; \
echo "Erlang messages (last 50 per log file):" ; \
echo "####################" ; \
tail -n 50 log/$(SCALARIS_JTEST_NAME)/* ; \
echo "####################" ; \
false ; \
else \
true ; \
fi
interop-test: compile java java-scalaris.test.compile python
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d \
-y $(SCALARIS_UNITTEST_YAWS_PORT) \
-p $(SCALARIS_UNITTEST_PORT) \
-n $(SCALARIS_JTEST_NAME) -m -s -f start ; \
sleep 5s ; \
java -cp "java-api/scalaris.jar:java-api/lib/jakarta-commons-cli-1.2.jar:java-api/lib/OtpErlang-$(OTP_ERLANG_VERSION).jar:java-api/classes" -Dscalaris.node="$(SCALARIS_JTEST_NAME)@localhost" de.zib.scalaris.InterOpTest -write interop_test > log/$(SCALARIS_JTEST_NAME)/interop.java_write.log 2>&1; \
JAVA_WRITE_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py write interop_test > log/$(SCALARIS_JTEST_NAME)/interop.python_write.log 2>&1 ; \
PYTHON_JSON_WRITE_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" ruby-api/scalaris_interop_test.rb write interop_test > log/$(SCALARIS_JTEST_NAME)/interop.ruby_write.log 2>&1 ; \
RUBY_JSON_WRITE_FAILED=$$? ; \
java -cp "java-api/scalaris.jar:java-api/lib/jakarta-commons-cli-1.2.jar:java-api/lib/OtpErlang-$(OTP_ERLANG_VERSION).jar:java-api/classes" -Dscalaris.node="$(SCALARIS_JTEST_NAME)@localhost" de.zib.scalaris.InterOpTest -read interop_test java > log/$(SCALARIS_JTEST_NAME)/interop.java_read_java.log 2>&1 ; \
JAVA_READ_JAVA_FAILED=$$? ; \
java -cp "java-api/scalaris.jar:java-api/lib/jakarta-commons-cli-1.2.jar:java-api/lib/OtpErlang-$(OTP_ERLANG_VERSION).jar:java-api/classes" -Dscalaris.node="$(SCALARIS_JTEST_NAME)@localhost" de.zib.scalaris.InterOpTest -read interop_test json_python > log/$(SCALARIS_JTEST_NAME)/interop.java_read_python.log 2>&1 ; \
JAVA_READ_PYTHON_JSON_FAILED=$$? ; \
java -cp "java-api/scalaris.jar:java-api/lib/jakarta-commons-cli-1.2.jar:java-api/lib/OtpErlang-$(OTP_ERLANG_VERSION).jar:java-api/classes" -Dscalaris.node="$(SCALARIS_JTEST_NAME)@localhost" de.zib.scalaris.InterOpTest -read interop_test json_ruby > log/$(SCALARIS_JTEST_NAME)/interop.java_read_ruby.log 2>&1 ; \
JAVA_READ_RUBY_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py read interop_test java > log/$(SCALARIS_JTEST_NAME)/interop.python_read_java.log 2>&1 ; \
PYTHON_JSON_READ_JAVA_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py read interop_test json_python > log/$(SCALARIS_JTEST_NAME)/interop.python_read_python.log 2>&1 ; \
PYTHON_JSON_READ_PYTHON_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py read interop_test json_ruby > log/$(SCALARIS_JTEST_NAME)/interop.python_read_ruby.log 2>&1 ; \
PYTHON_JSON_READ_RUBY_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" ruby-api/scalaris_interop_test.rb read interop_test java > log/$(SCALARIS_JTEST_NAME)/interop.ruby_read_java.log 2>&1 ; \
RUBY_JSON_READ_JAVA_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" ruby-api/scalaris_interop_test.rb read interop_test json_python > log/$(SCALARIS_JTEST_NAME)/interop.ruby_read_python.log 2>&1 ; \
RUBY_JSON_READ_PYTHON_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" ruby-api/scalaris_interop_test.rb read interop_test json_ruby > log/$(SCALARIS_JTEST_NAME)/interop.ruby_read_ruby.log 2>&1 ; \
RUBY_JSON_READ_RUBY_JSON_FAILED=$$? ; \
./bin/scalarisctl -n "$(SCALARIS_JTEST_NAME)" stop ; \
if [ $$JAVA_WRITE_FAILED -ne 0 -o $$PYTHON_JSON_WRITE_FAILED -ne 0 -o $$RUBY_JSON_WRITE_FAILED -ne 0 -o $$JAVA_READ_JAVA_FAILED -ne 0 -o $$JAVA_READ_PYTHON_JSON_FAILED -ne 0 -o $$JAVA_READ_RUBY_JSON_FAILED -ne 0 -o $$PYTHON_JSON_READ_JAVA_FAILED -ne 0 -o $$PYTHON_JSON_READ_PYTHON_JSON_FAILED -ne 0 -o $$PYTHON_JSON_READ_RUBY_JSON_FAILED -ne 0 -o $$RUBY_JSON_READ_JAVA_FAILED -ne 0 -o $$RUBY_JSON_READ_PYTHON_JSON_FAILED -ne 0 -o $$RUBY_JSON_READ_RUBY_JSON_FAILED -ne 0 ]; then \
echo "####################" ; \
echo "Erlang messages (last 50 per log file):" ; \
echo "####################" ; \
cat log/$(SCALARIS_JTEST_NAME)/interop.*write*.log ; \
cat log/$(SCALARIS_JTEST_NAME)/interop.*read*.log ; \
echo "####################" ; \
tail -n 50 log/$(SCALARIS_JTEST_NAME)/* ; \
echo "####################" ; \
false ; \
else \
echo "all tests successful" ; \
true ; \
fi
# only test whether python2 and python3 read/write the same values - the rest is checked by interop-test
interop3-test: interop-test python3
SCALARIS_ADDITIONAL_PARAMETERS="-scalaris mgmt_server {{127,0,0,1},$(SCALARIS_UNITTEST_PORT),mgmt_server} -scalaris known_hosts [{{127,0,0,1},$(SCALARIS_UNITTEST_PORT),service_per_vm}]" \
./bin/scalarisctl -d \
-y $(SCALARIS_UNITTEST_YAWS_PORT) \
-p $(SCALARIS_UNITTEST_PORT) \
-n $(SCALARIS_JTEST_NAME) -m -s -f start ; \
sleep 5s ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py write interop_test > log/$(SCALARIS_JTEST_NAME)/interop.python_write.log 2>&1 ; \
PYTHON_JSON_WRITE_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python3-api/scalaris_interop_test.py write interop_test3 > log/$(SCALARIS_JTEST_NAME)/interop.python3_write.log 2>&1 ; \
PYTHON3_JSON_WRITE_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py read interop_test json_python > log/$(SCALARIS_JTEST_NAME)/interop.python_read_python.log 2>&1 ; \
PYTHON_JSON_READ_PYTHON_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python-api/scalaris_interop_test.py read interop_test3 json_python > log/$(SCALARIS_JTEST_NAME)/interop.python_read_python3.log 2>&1 ; \
PYTHON_JSON_READ_PYTHON3_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python3-api/scalaris_interop_test.py read interop_test json_python > log/$(SCALARIS_JTEST_NAME)/interop.python3_read_python.log 2>&1 ; \
PYTHON3_JSON_READ_PYTHON_JSON_FAILED=$$? ; \
SCALARIS_JSON_URL="http://localhost:$(SCALARIS_UNITTEST_YAWS_PORT)" PYTHONIOENCODING="utf_8" python3-api/scalaris_interop_test.py read interop_test3 json_python > log/$(SCALARIS_JTEST_NAME)/interop.python3_read_python3.log 2>&1 ; \
PYTHON3_JSON_READ_PYTHON3_JSON_FAILED=$$? ; \
./bin/scalarisctl -n "$(SCALARIS_JTEST_NAME)" stop ; \
if [ -o $$PYTHON_JSON_WRITE_FAILED -ne 0 -o $$PYTHON3_JSON_WRITE_FAILED -ne 0 -o $$PYTHON_JSON_READ_PYTHON_JSON_FAILED -ne 0 -o $$PYTHON_JSON_READ_PYTHON3_JSON_FAILED -ne 0 -o $$PYTHON3_JSON_READ_PYTHON_JSON_FAILED -ne 0 -o $$PYTHON3_JSON_READ_PYTHON3_JSON_FAILED -ne 0 ]; then \
echo "####################" ; \
echo "Erlang messages (last 50 per log file):" ; \
echo "####################" ; \
cat log/$(SCALARIS_JTEST_NAME)/interop.*write*.log ; \
cat log/$(SCALARIS_JTEST_NAME)/interop.*read*.log ; \
echo "####################" ; \
tail -n 50 log/$(SCALARIS_JTEST_NAME)/* ; \
echo "####################" ; \
false ; \
else \
echo "all tests successful" ; \
true ; \
fi
clean:
-rm -f .make-doc
-rm -rf bin/*.beam
-rm -rf ebin/*.beam
-rm -rf src/*.beam
-rm -rf src/comm_layer/*.beam
-rm -rf contrib/yaws/ebin/*.beam
-rm -rf contrib/log4erl/ebin/*.beam
-rm -rf test/*.beam
-rm -rf doc/*.html
-rm -rf doc/*.css
-rm -rf doc/edoc-info
-rm -rf docroot/graphs/*.png
doc: .make-doc
.make-doc: $(SOURCEPATHS_ERL)
$(ERL) -noshell -run edoc_run application "'$(APP_NAME)'" \
'"."' '[{def,{vsn,"$(VSN)"}},no_packages]'
@touch .make-doc
docs: doc java-doc
svn:
$(SVN) propset svn:keywords Id src/*.erl src/*/*.erl test/*.erl bin/*.cfg
dialyzer: compile
$(DIALYZER) @DIALYZER_FLAGS@ -Werror_handling -Wrace_conditions -Wunmatched_returns -I include/ -I contrib/yaws/include/ -I contrib/log4erl/include/ --src -c src src/*/ test/unittest_helper.erl test/tester*.erl test/mockup*.erl test/erl_id_trans.erl test/measure_util.erl --no_native | sed -f contrib/dialyzer-col.sed
dialyzer-all: compile
$(DIALYZER) @DIALYZER_FLAGS@ -Werror_handling -Wrace_conditions -Wunmatched_returns -Wno_return -Wno_opaque -I include/ -I contrib/yaws/include/ -I contrib/log4erl/include/ --src -c src src/*/ test | sed -f contrib/dialyzer-col.sed
%_SUITE-dialyzer: compile
$(DIALYZER) @DIALYZER_FLAGS@ -Werror_handling -Wrace_conditions -Wunmatched_returns -Wno_return -Wno_opaque -I include/ -I contrib/yaws/include/ -I contrib/log4erl/include/ --src -c src src/*/ test/unittest_helper.erl test/tester*.erl test/erl_id_trans.erl test/measure_util.erl test/$*_SUITE.erl --no_native | sed -f contrib/dialyzer-col.sed
plt: compile
$(DIALYZER) --plt_info > /dev/null ; \
FAILED=$$? ; \
if [ $$FAILED -ne 0 ]; then \
$(DIALYZER) --build_plt $(DIALYZER_PLT_LIBS) ; \
else \
$(DIALYZER) --add_to_plt $(DIALYZER_PLT_LIBS) ; \
fi
rrd-init:
@echo This target is deprecated
install-doc: doc
install -d $(DOCDIR)
install -m 644 -t $(DOCDIR) \
AUTHORS README LICENSE ChangeLog
install -m 644 user-dev-guide/main.pdf $(DOCDIR)/user-dev-guide.pdf
install -d $(DOCDIR)/erlang
install -m 644 -t $(DOCDIR)/erlang \
doc/*.html \
doc/*.png
install-java-doc: java-doc
install -d $(DOCDIR)/java-api
install -d $(DOCDIR)/java-api/index-files
install -d $(DOCDIR)/java-api/resources
install -d $(DOCDIR)/java-api/de/zib/scalaris/class-use
install -d $(DOCDIR)/java-api/de/zib/scalaris/examples/class-use
install -m 644 -t $(DOCDIR)/java-api \
java-api/doc/*.html
install -m 644 -t $(DOCDIR)/java-api/index-files \
java-api/doc/index-files/*.html
install -m 644 -t $(DOCDIR)/java-api/resources \
java-api/doc/resources/*.gif
install -m 644 -t $(DOCDIR)/java-api/de/zib/scalaris \
java-api/doc/de/zib/scalaris/*.html
install -m 644 -t $(DOCDIR)/java-api/de/zib/scalaris/class-use \
java-api/doc/de/zib/scalaris/class-use/*.html
install -m 644 -t $(DOCDIR)/java-api/de/zib/scalaris/examples \
java-api/doc/de/zib/scalaris/examples/*.html
install -m 644 -t $(DOCDIR)/java-api/de/zib/scalaris/examples/class-use \
java-api/doc/de/zib/scalaris/examples/class-use/*.html
install-python-doc-html: python-doc-html
install -d $(DOCDIR)/python-api
install -d $(DOCDIR)/python-api/html
install -m 644 -t $(DOCDIR)/python-api/html \
python-api/doc/html/*
install-python-doc-pdf: python-doc-pdf
install -d $(DOCDIR)/python-api
install -d $(DOCDIR)/python-api/pdf
install -m 644 -t $(DOCDIR)/python-api/pdf \
python-api/doc/pdf/*.pdf
install-docs: install-doc install-java-doc
install-java: java
install -d $(JAVADIR)/scalaris
install -d $(JAVADIR)/scalaris/lib
install -m 644 -t $(JAVADIR)/scalaris \
java-api/scalaris.jar
install -m 644 -t $(JAVADIR)/scalaris/lib \
java-api/lib/OtpErlang-$(OTP_ERLANG_VERSION).jar
install -m 644 -t $(JAVADIR)/scalaris/lib \
java-api/lib/jakarta-commons-cli-$(COMMONS_CLI_VERSION).jar
install -d $(ETCDIR)
install -m 644 java-api/scalaris-java.conf \
$(ETCDIR)/scalaris-java.conf
install -m 644 -t $(ETCDIR) \
java-api/scalaris-java.conf.sample
install -m 644 -t $(ETCDIR) \
java-api/scalaris.properties
install -d $(BINDIR)
install -m 755 -t $(BINDIR) \
java-api/scalaris
install-erlang: compile
install -d $(BEAMDIR)
install -m 644 -t $(BEAMDIR) \
ebin/*.beam
install -d $(ETCDIR)
install -m 644 -t $(ETCDIR) \
bin/scalarisctl.conf \
bin/scalaris.cfg \
bin/scalaris.local.cfg.example
if [ -f bin/scalaris.local.cfg ]; then \
install -m 644 -t $(ETCDIR) \
bin/scalaris.local.cfg; \
else \
touch $(ETCDIR)/scalaris.local.cfg ; \
fi
install -d $(DOCROOTDIR) \
$(DOCROOTDIR)/icons \
$(DOCROOTDIR)/flot \
$(DOCROOTDIR)/images/default \
$(DOCROOTDIR)/images/default/dd \
$(DOCROOTDIR)/images/default/panel \
$(DOCROOTDIR)/images/default/tree \
$(DOCROOTDIR)/images/default/grid
install -m 644 -t $(DOCROOTDIR) \
docroot/*.yaws \
docroot/*.css \
docroot/*.js \
docroot/*.gif
install -m 644 -t $(DOCROOTDIR)/flot \
docroot/flot/*
install -m 644 -t $(DOCROOTDIR)/icons \
docroot/icons/*.gif
install -m 644 -t $(DOCROOTDIR)/images/default/dd \
docroot/images/default/dd/*.gif
install -m 644 -t $(DOCROOTDIR)/images/default/panel \
docroot/images/default/panel/*.gif
install -m 644 -t $(DOCROOTDIR)/images/default/panel \
docroot/images/default/panel/*.png
install -m 644 -t $(DOCROOTDIR)/images/default/tree \
docroot/images/default/tree/*.gif
install -m 644 -t $(DOCROOTDIR)/images/default/grid \
docroot/images/default/grid/*.gif
install -m 644 -t $(DOCROOTDIR)/images/default/grid \
docroot/images/default/grid/*.png
install -d $(SCALARISDIR)/contrib/yaws/ebin
install -d $(SCALARISDIR)/contrib/yaws/include
install -m 644 -t $(SCALARISDIR)/contrib/yaws/ebin \
contrib/yaws/ebin/*.beam
install -m 644 -t $(SCALARISDIR)/contrib/yaws/include \
contrib/yaws/include/yaws_api.hrl
install -d $(SCALARISDIR)/contrib/log4erl/ebin
install -m 644 -t $(SCALARISDIR)/contrib/log4erl/ebin \
contrib/log4erl/ebin/*.beam
install -d $(LOGDIR)
install -d $(BINDIR)
install -m 755 -t $(BINDIR) \
bin/scalarisctl
install-ruby:
install -d $(RUBYSITELIBDIR)
install -m 644 -t $(RUBYSITELIBDIR) ruby-api/scalaris.rb
install -d $(BINDIR)
install -m 755 ruby-api/scalaris_client.rb $(BINDIR)/scalaris-ruby
install-python: python
install -d $(PYTHONSITELIBDIR)
install -m 644 -p -t $(PYTHONSITELIBDIR) python-api/scalaris.py*
install -m 644 -p -t $(PYTHONSITELIBDIR) python-api/scalaris_bench.py*
install -d $(BINDIR)
install -m 755 -p python-api/scalaris_client.py $(BINDIR)/scalaris-python
install-python3: python3
install -d $(PYTHON3SITELIBDIR)
install -m 644 -p -t $(PYTHON3SITELIBDIR) python3-api/scalaris.py*
install -m 644 -p -t $(PYTHON3SITELIBDIR) python3-api/scalaris_bench.py*
if [ -d python3-api/__pycache__ ]; then \
install -d $(PYTHON3SITELIBDIR)/__pycache__ ; \
install -m 644 -p -t $(PYTHON3SITELIBDIR)/__pycache__ \
python3-api/__pycache__/scalaris.*.py*; \
install -m 644 -p -t $(PYTHON3SITELIBDIR)/__pycache__ \
python3-api/__pycache__/scalaris_bench.*.py*; \
fi
install -d $(BINDIR)
install -m 755 -p python3-api/scalaris_client.py $(BINDIR)/scalaris-python3
install-one:
install -d $(INITDIR)
install -m 744 -t $(INITDIR) contrib/opennebula/scalaris-iso/scalaris-contrail
install -m 744 -t $(INITDIR) contrib/opennebula/scalaris-iso/vmcontext
install -d $(ETCDIR)
install -m 744 -t $(ETCDIR) contrib/opennebula/scalaris-iso/init-contrail.sh
install -d $(SCALARISDIR)/contrib/opennebula
install -d $(SCALARISDIR)/contrib/opennebula/fe_views
install -d $(SCALARISDIR)/contrib/opennebula/public
install -d $(SCALARISDIR)/contrib/opennebula/sc_views
install -m 644 -t $(SCALARISDIR)/contrib/opennebula \
contrib/opennebula/webinterface-v2/*.rb
install -m 644 -t $(SCALARISDIR)/contrib/opennebula \
contrib/opennebula/webinterface-v2/*.erb
install -m 744 -t $(SCALARISDIR)/contrib/opennebula \
contrib/opennebula/webinterface-v2/cli.rb
install -m 744 -t $(SCALARISDIR)/contrib/opennebula \
contrib/opennebula/webinterface-v2/frontend.rb
install -m 744 -t $(SCALARISDIR)/contrib/opennebula \
contrib/opennebula/webinterface-v2/manager.rb
install -m 744 -t $(SCALARISDIR)/contrib/opennebula \
contrib/opennebula/webinterface-v2/*.sh
install -m 644 -t $(SCALARISDIR)/contrib/opennebula/fe_views \
contrib/opennebula/webinterface-v2/fe_views/*.erb
install -m 644 -t $(SCALARISDIR)/contrib/opennebula/sc_views \
contrib/opennebula/webinterface-v2/sc_views/*.erb
install: install-erlang
install-all: install-erlang install-java install-docs @ENABLERUBYINSTALL@ @ENABLEPYTHONINSTALL@ @ENABLEPYTHON3INSTALL@ @ENABLEONEINSTALL@