aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/joy
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-10-04 07:20:24 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-10-04 07:20:24 +0000
commit229edd6df7e411d295513f63151668230eeba17f (patch)
tree8764cfb7d36ad3fef80e28213ebcc2051c97b707 /sys/modules/joy
parent9de54ba51370b69370f84f31a6bce18398c51ed9 (diff)
downloadsrc-229edd6df7e411d295513f63151668230eeba17f.tar.gz
src-229edd6df7e411d295513f63151668230eeba17f.zip
Only install secondary components if the destination directory exists.
This may be a WIP, but `make release' needs it sooner than later.
Notes
Notes: svn path=/head/; revision=66620
Diffstat (limited to 'sys/modules/joy')
-rw-r--r--sys/modules/joy/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/modules/joy/Makefile b/sys/modules/joy/Makefile
index a275add5d7b2..fd2166841178 100644
--- a/sys/modules/joy/Makefile
+++ b/sys/modules/joy/Makefile
@@ -3,10 +3,14 @@
.PATH: ${.CURDIR}/../../isa
KMOD = joy
SRCS = bus_if.h device_if.h isa_if.h joy.c
+.if exists(${DESTDIR}/usr/share/man/man8)
MAN8 = joy.8
+.endif
+.if exists(${DESTDIR}/usr/bin)
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/joy.sh ${DESTDIR}/usr/bin/joy
+.endif
.include <bsd.kmod.mk>