SUBDIR=	lib ${MODULES} siod sample

beforeinstall:
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/siod

afterinstall:
	# Install man-pages
	set -x; for m in *.man; do	\
		${INSTALL_MAN} $$m ${STAGEDIR}${PREFIX}/share/man/man1/$${m%%.man}.1;	\
	done
	${INSTALL_SCRIPT} `${MAKE} -f makefile -V CMDFILES`	\
		${STAGEDIR}${PREFIX}/bin/
	${INSTALL_DATA} `${MAKE} -f makefile -V LIBFILES`	\
		${STAGEDIR}${PREFIX}/lib/siod

.include <bsd.subdir.mk>
