view contrib/peer2anonet/Makefile @ 750:487750794fb6 draft

Added domain for webdevil
author d3v11 <d3v11@d3v11.ano>
date Tue, 15 Nov 2011 00:29:29 -0600
parents 6753fb814c94
children
line wrap: on
line source

#!/usr/bin/make -f

install-deb:
	make clean
	rm -rf DEBIAN/peer2anonet *.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
	DEBIAN/configure
	dpkg-deb --build DEBIAN/peer2anonet
	dpkg -i DEBIAN/peer2anonet.deb
	rm -rf DEBIAN/peer2anonet DEBIAN/peer2anonet.deb

install:
	make clean
	make uninstall
	cp peer2anonet /usr/bin/peer2anonet
	chmod +x /usr/bin/peer2anonet
	mkdir /etc/peer2anonet
	./configure

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

clean:
	rm -rf DEBIAN/peer2anonet DEBIAN/peer2anonet.deb