freebsd-skq/share/info/Makefile
ru 1ac5a2b5a0 New install-info(1) correctly fails to install ENTRY for file FOO
if ENTRY already exists for file FOO2 in /usr/share/info/dir.

So, re-init /usr/share/info/dir unconditionally at installworld.
2000-01-19 19:18:50 +00:00

23 lines
717 B
Makefile

# @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$
NOOBJ= noobj
beforeinstall:
.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;
.endif
${INSTALL} -c -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} dir-tmpl \
${DESTDIR}${INFODIR}/dir-tmpl
${INSTALL} -c -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
dir-tmpl ${DESTDIR}${INFODIR}/dir
.include <bsd.prog.mk>