summaryrefslogtreecommitdiff
path: root/contrib/peer2anonet/Makefile
blob: e040bf55508ecc6d8e773e0cec3ea7c362cafbb2 (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
#!/usr/bin/make -f

install-deb:
	mkdir DEBIAN/peer2anonet
	mkdir DEBIAN/peer2anonet/DEBIAN
	mkdir DEBIAN/peer2anonet/usr
	mkdir DEBIAN/peer2anonet/usr/bin
	mkdir DEBIAN/peer2anonet/etc
	mkdir DEBIAN/peer2anonet/etc/peer2anonet
	cp DEBIAN/control DEBIAN/peer2anonet/DEBIAN/control
	cp peer2anonet DEBIAN/peer2anonet/usr/bin/peer2anonet
	chmod +x DEBIAN/peer2anonet/usr/bin/peer2anonet
	cp LICENSE DEBIAN/peer2anonet/etc/peer2anonet/LICENSE
	DEBIAN/configure
	dpkg-deb --build DEBIAN/peer2anonet
	dpkg -i DEBIAN/peer2anonet.deb
	rm -rf DEBIAN/peer2anonet DEBIAN/peer2anonet.deb

install:
	cp peer2anonet /usr/bin/peer2anonet
	chmod +x /usr/bin/peer2anonet
	mkdir /etc/peer2anonet
	cp LICENSE /etc/peer2anonet/LICENSE
	./configure

uninstall:
	rm -r /usr/bin/peer2anonet /etc/peer2anonet