aboutsummaryrefslogtreecommitdiff
path: root/share/info/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'share/info/Makefile')
-rw-r--r--share/info/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/info/Makefile b/share/info/Makefile
index 95909724d05d..0360a58be245 100644
--- a/share/info/Makefile
+++ b/share/info/Makefile
@@ -5,6 +5,11 @@ NOOBJ= noobj
all clean cleandir depend lint tags:
beforeinstall:
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 dir-tmpl ${DESTDIR}${BINDIR}/info/dir
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 dir-tmpl \
+ ${DESTDIR}${BINDIR}/info/dir-tmpl
+ if [ ! -f ${DESTDIR}${BINDIR}/info/dir ]; then \
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 dir-tmpl \
+ ${DESTDIR}${BINDIR}/info/dir ; \
+ fi
.include <bsd.prog.mk>