# Makefile for netclipd by freax

CC = cc
CFLAGS01 = netclipd.c -o netclipd

all:
	$(CC) $(CFLAGS01)
	@echo "Now do 'make install' as root"
	@echo ""

install:
	cp netclipd /usr/bin
# This one is for RedHat.. change this if
# your distro has another rc.d/init.d directory
	cp rc/netclipd /etc/rc.d/init.d/
	mkdir /var/netclip
	touch /var/netclip/current
	/etc/rc.d/init.d/netclipd start
	@echo "Now read the README file"
	@echo ""

uninstall:
	rm -rf /var/netclip
	rm -rf /usr/bin/netclipd
	rm -rf /etc/rc.d/init.d/netclipd
	@echo "Make sure that the netclipd is not running anymore"

distclean:
	rm -rf netclipd

