121503Sjmacd#       @(#)Makefile    8.1 (Berkeley) 6/5/93
250476Speter# $FreeBSD$
321503Sjmacd
4139103SruNO_OBJ=
521503Sjmacd
694984Sru.include <bsd.prog.mk>
794984Sru
821503Sjmacdbeforeinstall:
935903Swosch.if !exists(${DESTDIR}${INFODIR})
1035903Swosch	@echo "Warning: the directory ${DESTDIR}${INFODIR} does not exist!"
1135903Swosch	@echo "Perhaps the variable INFODIR is set incorrectly"
1235903Swosch	@echo "or your mtree database files are broken."
1335903Swosch	@echo ""
1435903Swosch	@echo "As a workaround you can create the directory by hand, e.g.:"
1535903Swosch	@echo -n "install -d -o ${INFOOWN} -g ${INFOGRP} "
1635903Swosch	@echo "-m 0755 ${DESTDIR}${INFODIR}"
1735903Swosch	@exit 3;
1856538Sru.endif
1956538Sru.if !exists(${DESTDIR}${INFODIR}/dir)
20245753Sbrooks	${INSTALL} -o ${INFOOWN} -g ${INFOGRP} -m 644 \
2132212Swosch		 dir-tmpl ${DESTDIR}${INFODIR}/dir
2256538Sru.endif
23