aboutsummaryrefslogtreecommitdiff
path: root/share/info/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'share/info/Makefile')
-rw-r--r--share/info/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/share/info/Makefile b/share/info/Makefile
new file mode 100644
index 000000000000..0110e02ca151
--- /dev/null
+++ b/share/info/Makefile
@@ -0,0 +1,22 @@
+# @(#)Makefile 8.1 (Berkeley) 6/5/93
+# $FreeBSD$
+
+NO_OBJ=
+
+.include <bsd.prog.mk>
+
+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
+.if !exists(${DESTDIR}${INFODIR}/dir)
+ ${INSTALL} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
+ dir-tmpl ${DESTDIR}${INFODIR}/dir
+.endif