Remove support for symlinks instead of copies. This also avoids

using mtree. Space is being saved by other means.
This commit is contained in:
Marcel Moolenaar
1999-12-08 13:47:30 +00:00
parent 894157f536
commit 02cca88299
2 changed files with 30 additions and 77 deletions
+2 -16
View File
@@ -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>