
install:
	@if [ ! -f /etc/init.d/zaptel ]; then \
		install -m 755 zaptel /etc/init.d; \
		echo "installation succeeded"; \
	else \
		echo "/etc/init.d/zaptel already exists, remove it and run \"make install\" again."; \
	fi

snapshot:
	DIR=zaptel-init ; \
	mkdir -p /tmp/$$DIR ; \
	cp * /tmp/$$DIR ; \
	cd /tmp/; \
	tar czf $$DIR.tar.gz $$DIR


