summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-09-18 21:18:44 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-09-18 21:18:44 +0000
commitd6054a61ef48d446819e69e74b672a259cdd0f94 (patch)
treea0889cf732b44b633443e2a5b73601809a4bb7fa /cddl
parent47e52b294f9dcbb415b04be8a79d1ff4b60da24f (diff)
downloadFreeBSD-src-d6054a61ef48d446819e69e74b672a259cdd0f94.zip
FreeBSD-src-d6054a61ef48d446819e69e74b672a259cdd0f94.tar.gz
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
Diffstat (limited to 'cddl')
-rw-r--r--cddl/lib/libdtrace/Makefile11
1 files changed, 4 insertions, 7 deletions
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 <bsd.lib.mk>
OpenPOWER on IntegriCloud