Initial import from FreeBSD RELENG_4:
[games.git] / share / info / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/5/93
2 # $FreeBSD: src/share/info/Makefile,v 1.9.2.3 2002/08/07 16:31:50 ru Exp $
3
4 NOOBJ=  noobj
5
6 .include <bsd.prog.mk>
7
8 beforeinstall:
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 ${INFOMODE} \
21                  dir-tmpl ${DESTDIR}${INFODIR}/dir
22 .endif