1997-01-11 02:44:34 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1997-01-11 02:44:34 +00:00
|
|
|
|
2004-12-21 08:47:35 +00:00
|
|
|
NO_OBJ=
|
1997-01-11 02:44:34 +00:00
|
|
|
|
2002-04-18 06:55:32 +00:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
1997-01-11 02:44:34 +00:00
|
|
|
beforeinstall:
|
1998-05-09 22:15:19 +00:00
|
|
|
.if !exists(${DESTDIR}${INFODIR})
|
|
|
|
@echo "Warning: the directory ${DESTDIR}${INFODIR} does not exist!"
|
|
|
|
@echo "Perhaps the variable INFODIR is set incorrectly"
|
|
|
|
@echo "or your mtree database files are broken."
|
|
|
|
@echo ""
|
|
|
|
@echo "As a workaround you can create the directory by hand, e.g.:"
|
|
|
|
@echo -n "install -d -o ${INFOOWN} -g ${INFOGRP} "
|
|
|
|
@echo "-m 0755 ${DESTDIR}${INFODIR}"
|
|
|
|
@exit 3;
|
2000-01-24 16:14:32 +00:00
|
|
|
.endif
|
|
|
|
.if !exists(${DESTDIR}${INFODIR}/dir)
|
2013-01-21 22:54:43 +00:00
|
|
|
${INSTALL} -o ${INFOOWN} -g ${INFOGRP} -m 644 \
|
1998-01-03 14:06:26 +00:00
|
|
|
dir-tmpl ${DESTDIR}${INFODIR}/dir
|
2000-01-24 16:14:32 +00:00
|
|
|
.endif
|