From 6389b1b3b0767a93f3b9195c810be5b9148f6c8c Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 4 Oct 2000 07:20:24 +0000 Subject: Only install secondary components if the destination directory exists. This may be a WIP, but `make release' needs it sooner than later. --- sys/modules/svr4/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/modules/svr4') diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile index a9a57bd..ee7e639 100644 --- a/sys/modules/svr4/Makefile +++ b/sys/modules/svr4/Makefile @@ -12,7 +12,9 @@ SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_svr4.h opt_vmpage.h \ svr4_stream.c svr4_socket.c svr4_sockio.c svr4_machdep.c \ svr4_resource.c svr4_ipc.c OBJS= svr4_locore.o +.if exists(${DESTDIR}/usr/share/man/man8) MAN8= svr4.8 +.endif EXPORT_SYMS=_svr4_mod CLEANFILES= svr4_assym.h svr4_genassym.o @@ -39,8 +41,10 @@ opt_svr4.h: echo "#define DEBUG_SVR4 1" >> opt_svr4.h .endif +.if exists(${DESTDIR}/usr/bin) afterinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/svr4.sh ${DESTDIR}/usr/sbin/svr4 +.endif .include -- cgit v1.1