Remove support for symlinks instead of copies. This also avoids
using mtree. Space is being saved by other means.
This commit is contained in:
+2
-16
@@ -8,14 +8,10 @@ DDIR= ${DESTDIR}/usr/share/examples
|
||||
|
||||
NOOBJ= noobj
|
||||
|
||||
# Define SHARED to indicate whether you want symbolic links to the system
|
||||
# source (``symlinks''), or a separate copy (``copies''); (latter useful
|
||||
# in environments where it's not possible to keep /sys publicly readable)
|
||||
SHARED?= copies
|
||||
|
||||
all clean cleandir depend lint tags:
|
||||
|
||||
beforeinstall: etc-examples ${SHARED}
|
||||
beforeinstall: copies
|
||||
(cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
|
||||
|
||||
.for dir in ${DIRS}
|
||||
FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print
|
||||
@@ -25,14 +21,4 @@ copies::
|
||||
.endfor
|
||||
.endfor
|
||||
|
||||
.for dir in ${DIRS}
|
||||
symlinks::
|
||||
rm -rf ${DDIR}/${dir}; ln -s ${.CURDIR}/${dir} ${DDIR}
|
||||
.endfor
|
||||
|
||||
etc-examples:
|
||||
.if ${SHARED} != "symlinks"
|
||||
(cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
Reference in New Issue
Block a user