svn commit: r287983 - head/gnu/usr.bin/binutils/ld

Bryan Drewery bdrewery at FreeBSD.org
Sat Sep 19 03:53:38 UTC 2015


Author: bdrewery
Date: Sat Sep 19 03:53:37 2015
New Revision: 287983
URL: https://svnweb.freebsd.org/changeset/base/287983

Log:
  Replace afterinstall: hack with FILES mechanism.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/gnu/usr.bin/binutils/ld/Makefile

Modified: head/gnu/usr.bin/binutils/ld/Makefile
==============================================================================
--- head/gnu/usr.bin/binutils/ld/Makefile	Sat Sep 19 03:51:19 2015	(r287982)
+++ head/gnu/usr.bin/binutils/ld/Makefile	Sat Sep 19 03:53:37 2015	(r287983)
@@ -45,6 +45,12 @@ LDADD=	${DPADD}
 CLEANDIRS+=	ldscripts
 CLEANFILES+=	ldemul-list.h stringify.sed
 
+FILES=		${LDSCRIPTS:S|^|ldscripts/|}
+FILESOWN=	${LIBOWN}
+FILESGRP=	${LIBGRP}
+FILESMODE=	${LIBMODE}
+FILESDIR=	${SCRIPTDIR}
+
 HOST=		${TARGET_TUPLE}
 LIBSEARCHPATH=	\"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
 ELF_SCR_EXT=	x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
@@ -66,10 +72,6 @@ ldemul-list.h:
 stringify.sed:
 	ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET}
 
-afterinstall:
-	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
-	    ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}
-
 GENDIRDEPS_FILTER.host+= Nusr.bin/yacc
 
 .include <bsd.prog.mk>


More information about the svn-src-all mailing list