svn commit: r287971 - head/cddl/lib/libdtrace

Bryan Drewery bdrewery at FreeBSD.org
Fri Sep 18 21:18:45 UTC 2015


Author: bdrewery
Date: Fri Sep 18 21:18:44 2015
New Revision: 287971
URL: https://svnweb.freebsd.org/changeset/base/287971

Log:
  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

Modified:
  head/cddl/lib/libdtrace/Makefile

Modified: head/cddl/lib/libdtrace/Makefile
==============================================================================
--- head/cddl/lib/libdtrace/Makefile	Fri Sep 18 21:01:52 2015	(r287970)
+++ head/cddl/lib/libdtrace/Makefile	Fri Sep 18 21:18:44 2015	(r287971)
@@ -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>


More information about the svn-src-head mailing list