Don't be so aggressive when installing examples. We still delete the

directories or links before we install the new things, but now we don't
delete /usr/share/examples itself, so other examples installed from
other places in the tree will not be touched.
This commit is contained in:
Garrett Wollman 1994-09-13 02:21:03 +00:00
parent afdd2e6229
commit 221a01197c

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.3 1994/08/19 20:43:42 wollman Exp $
# $Id: Makefile,v 1.4 1994/08/28 17:21:36 bde Exp $
#
# Doing a make install builds /usr/share/examples
@ -16,21 +16,16 @@ beforeinstall: ${SHARED}
copies:
@${ECHO} installing ${DESTDIR}/usr/share/examples
@rm -rf ${DESTDIR}/usr/share/examples
@-mkdir ${DESTDIR}/usr/share/examples
@tar cf - ${DIRS} | \
(cd ${DESTDIR}/usr/share/examples; tar xpfB -);
@chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples
@chmod -R a-w ${DESTDIR}/usr/share/examples
@-for a in ${DIRS}; do \
rm -rf ${DESTDIR}/usr/share/examples/$$a; \
cp =rp $$a ${DESTDIR}/usr/share/examples; \
done
symlinks:
@${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples
@rm -rf ${DESTDIR}/usr/share/examples
@-mkdir ${DESTDIR}/usr/share/examples
@-for a in ${DIRS}; do \
rm -rf ${DESTDIR}/usr/share/examples/$$a; \
ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \
done
@chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples
@chmod -R a-w ${DESTDIR}/usr/share/examples
.include <bsd.prog.mk>