summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-04-30 18:14:22 +0000
committerbrooks <brooks@FreeBSD.org>2013-04-30 18:14:22 +0000
commit40860177021ccdc3eeca05f67113cbe4177925fc (patch)
treee919b765bcec69ff2ea62073ab9f75c696d3ee95 /lib/Makefile
parent6246c992189e1d486521425f9d415ad7e641b15e (diff)
downloadFreeBSD-src-40860177021ccdc3eeca05f67113cbe4177925fc.zip
FreeBSD-src-40860177021ccdc3eeca05f67113cbe4177925fc.tar.gz
Wrap the creation of the ../include link in /usr/lib in
!defined(LIBRARIES_ONLY) so it is only created once on architectures with 32-bit compat support. Replace ln -fhs with ${INSTALL_SYMLINK} to the link is logged in the METALOG.
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index e8c6551..d28d55b 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -252,7 +252,9 @@ _libusbhid= libusbhid
_libusb= libusb
.endif
+.if !defined(LIBRARIES_ONLY)
afterinstall:
- ln -hfs ../include ${DESTDIR}/usr/lib/include
+ ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
+.endif
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud