#!/usr/bin/make -f

CFLAGS = -O2 -g -Wall
export CFLAGS

DESTDIR = debian/ttysnoop

%:
	dh $@

override_dh_auto_install:
	mkdir -p $(DESTDIR)/usr/sbin
	install ttysnoop $(DESTDIR)/usr/sbin/
	install ttysnoops $(DESTDIR)/usr/sbin/
	mkdir -p $(DESTDIR)/etc
	install -m 644 snooptab.dist $(DESTDIR)/etc/snooptab

override_dh_install:
	dh_installchangelogs README
	dh $@
