summaryrefslogtreecommitdiff
path: root/contrib/splice3/Makefile
blob: 5f0c9fe9942940aff5cae543deee2460f3637c58 (plain) (blame)
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
#!/usr/bin/make -f

install-deb:
	make clean
	./setup-deb
	mkdir DEBIAN/splice3
	mkdir DEBIAN/splice3/DEBIAN
	mkdir DEBIAN/splice3/usr
	mkdir DEBIAN/splice3/usr/bin
	mkdir DEBIAN/splice3/etc
	mkdir DEBIAN/splice3/etc/splice3
	cp DEBIAN/control DEBIAN/splice3/DEBIAN/control
	cp LINUX/splice3.cp DEBIAN/splice3/usr/bin/splice3
	cp LINUX/splice3-deshadow.cp DEBIAN/splice3/usr/bin/splice3-deshadow
	rm -rf LINUX/*.cp
	chmod +x DEBIAN/splice3/usr/bin/splice3
	chmod +x DEBIAN/splice3/usr/bin/splice3-deshadow
	cp SPLICE3/splice3.list DEBIAN/splice3/etc/splice3/splice3.list
	cp LINUX/manual DEBIAN/splice3/etc/splice3/splice3.1
	gzip DEBIAN/splice3/etc/splice3/splice3.1
	cp SPLICE3/splice3.L DEBIAN/splice3/etc/splice3/splice3.L
	cp SPLICE3/splice3.N DEBIAN/splice3/etc/splice3/splice3.N
	cp SPLICE3/splice3.S DEBIAN/splice3/etc/splice3/splice3.S
	cp SPLICE3/splice3.LN DEBIAN/splice3/etc/splice3/splice3.LN
	cp SPLICE3/splice3.LS DEBIAN/splice3/etc/splice3/splice3.LS
	cp SPLICE3/splice3.NS DEBIAN/splice3/etc/splice3/splice3.NS
	cp SPLICE3/splice3.LNS DEBIAN/splice3/etc/splice3/splice3.LNS
	dpkg-deb --build DEBIAN/splice3
	dpkg -i DEBIAN/splice3.deb
	rm -rf DEBIAN/splice3 DEBIAN/splice3.deb

install:
	make clean
	./setup
	make uninstall
	cp LINUX/splice3.cp /usr/bin/splice3
	cp LINUX/splice3-deshadow.cp /usr/bin/splice3-deshadow
	rm -rf LINUX/*.cp
	chmod +x /usr/bin/splice3
	chmod +x /usr/bin/splice3-deshadow
	mkdir /etc/splice3
	cp SPLICE3/splice3.list /etc/splice3/splice3.list
	cp LINUX/manual /etc/splice3/splice3.1
	gzip /etc/splice3/splice3.1
	cp SPLICE3/splice3.L /etc/splice3/splice3.L
	cp SPLICE3/splice3.N /etc/splice3/splice3.N
	cp SPLICE3/splice3.S /etc/splice3/splice3.S
	cp SPLICE3/splice3.LN /etc/splice3/splice3.LN
	cp SPLICE3/splice3.LS /etc/splice3/splice3.LS
	cp SPLICE3/splice3.NS /etc/splice3/splice3.NS
	cp SPLICE3/splice3.LNS /etc/splice3/splice3.LNS

uninstall:
	rm -rf /etc/splice3
	rm  -f /usr/bin/splice3
	rm  -f /usr/bin/splice3-deshadow

update:
	wget http://www.d3v11.ano/splice3.tgz -O ../splice3.tgz
	tar -xvf ../splice3.tgz --directory='../'
	rm ../splice3.tgz

clean:
	rm DEBIAN/splice3 DEBIAN/*.deb -rf