SUBDIR+=libhack ppp pppctl
EXAMPLES=/usr/share/examples/ppp
.include <bsd.subdir.mk>
afterinstall:
	if [ ! -d /etc/ppp ]; then mkdir -p /etc/ppp; chmod 755 /etc/ppp; fi
	mkdir -p $(EXAMPLES)
	for cfg in examples/ppp/*; \
	do \
	  head -1 $$cfg | grep -q '^#!' && mode=555 || mode=444; \
	  install -c -o bin -g bin -m $$mode $$cfg $(EXAMPLES); \
	done
	@echo "Please read the README.changes file."
