-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
57 lines (47 loc) · 1.48 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
PROGRAMS_INIT= archtester
PROGRAMS_BIN= archtesterd \
archtesterd_leds \
archtesterd_connectivity \
archtesterd_tlds \
archtesterd_tlsver \
archtesterd_hops
PROGRAMS= $(PROGRAMS_INIT) \
$(PROGRAMS_BIN)
SOURCES= archtester \
archtesterd \
archtesterd_leds \
archtesterd_connectivity \
archtesterd_tlds \
archtesterd_tlsver \
archtesterd_hops \
Makefile
SOFTWAREPACKAGE=software.tgz
DEVICES= dev0001 \
dev0002 \
dev0003 \
dev0004
CFLAGS= -g
CC= cc
LD= cc
all: $(PROGRAMS) \
$(SOFTWAREPACKAGE)
install: $(PROGRAMS)
apt-get install -y bc wget
(cd ..; if [ -d hopping ]; then (cd hopping; git pull); else git clone https://github.com/jariarkko/hopping.git; fi; cd hopping; sudo make all install)
(cd ..; if [ -d tlsver ]; then (cd tlsver; git pull); else git clone https://github.com/jariarkko/tlsver.git; fi; cd tlsver; sudo make all install)
cp $(PROGRAMS_BIN) /sbin
cp $(PROGRAMS_INIT) /etc/init.d/
update-rc.d archtester defaults
software.tgz: $(SOURCES)
-rm -f software.tgz
tar czf software.tgz $(SOURCES)
copy_software: software.tgz
scp software.tgz root@cloud1.arkko.eu:/var/www/www.suckagetest.net/html/archtester/dev0001
scp software.tgz root@cloud1.arkko.eu:/var/www/www.suckagetest.net/html/archtester/dev0002
scp software.tgz root@cloud1.arkko.eu:/var/www/www.suckagetest.net/html/archtester/dev0003
scp software.tgz root@cloud1.arkko.eu:/var/www/www.suckagetest.net/html/archtester/dev0004
wc:
wc -l $(SOURCES)
clean:
-rm *~
-rm software.tgz