1#       @(#)Makefile    8.1 (Berkeley) 6/5/93
2# $FreeBSD$
3
4NO_OBJ=
5
6.include <bsd.prog.mk>
7
8beforeinstall:
9.if !exists(${DESTDIR}${INFODIR})
10	@echo "Warning: the directory ${DESTDIR}${INFODIR} does not exist!"
11	@echo "Perhaps the variable INFODIR is set incorrectly"
12	@echo "or your mtree database files are broken."
13	@echo ""
14	@echo "As a workaround you can create the directory by hand, e.g.:"
15	@echo -n "install -d -o ${INFOOWN} -g ${INFOGRP} "
16	@echo "-m 0755 ${DESTDIR}${INFODIR}"
17	@exit 3;
18.endif
19.if !exists(${DESTDIR}${INFODIR}/dir)
20	${INSTALL} -o ${INFOOWN} -g ${INFOGRP} -m 644 \
21		 dir-tmpl ${DESTDIR}${INFODIR}/dir
22.endif
23