default: all

MAKECLEAN = cd hacks; make clean; cd ../utils; make clean

clean::
	@$(MAKECLEAN)

MAKEALL = cd hacks; make

all::
	@$(MAKEALL) 

INSTALL = \
	echo "Installing thomaskjaer.pl in /usr/local/bin"; \
	mkdir -p /usr/local/bin; \
	install -o root -m755 thomaskjaer.pl /usr/local/bin/thomaskjaer.pl; \
	echo "Installing thomaskjaer in /usr/local/bin"; \
	install -o root -m755 hacks/thomaskjaer /usr/local/bin/thomaskjaer; \
	echo "Installing thomaskjaer.txt in /usr/local/etc"; \
	mkdir -p /usr/local/etc; \
	install -o root -m644 thomaskjaer.txt /usr/local/etc/thomaskjaer.txt

install::
	@$(INSTALL)

UNINSTALL = echo "Uninstalling ThomasKjaer"; rm /usr/local/bin/thomaskjaer /usr/local/bin/thomaskjaer.pl /usr/local/etc/thomaskjaer.txt

uninstall::
	@$(UNINSTALL)
