From d6054a61ef48d446819e69e74b672a259cdd0f94 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Fri, 18 Sep 2015 21:18:44 +0000 Subject: Use FILES for installing the dtrace scripts. The BSD.usr.dist mtree always creates /usr/lib/dtrace so there is no need to check if it exists. The FILES mechanism already supports LIBRARIES_ONLY. Sponsored by: EMC / Isilon Storage Division --- cddl/lib/libdtrace/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'cddl') diff --git a/cddl/lib/libdtrace/Makefile b/cddl/lib/libdtrace/Makefile index ee1d6db..642357f 100644 --- a/cddl/lib/libdtrace/Makefile +++ b/cddl/lib/libdtrace/Makefile @@ -56,6 +56,10 @@ DSRCS= errno.d \ udp.d \ unistd.d +FILES= ${DSRCS} +FILESDIR= /usr/lib/dtrace +FILESMODE= ${NOBINMODE} + WARNS?= 1 CFLAGS+= -I${.OBJDIR} -I${.CURDIR} \ @@ -120,11 +124,4 @@ dt_names.c: beforedepend: dt_errtags.c dt_names.c -beforeinstall: -.if !defined(LIBRARIES_ONLY) && exists(${DESTDIR}/usr/lib/dtrace) -.for file in ${DSRCS} - ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${.CURDIR}/${file} ${DESTDIR}/usr/lib/dtrace -.endfor -.endif - .include -- cgit v1.1