1# $Id: Makefile,v 1.3 1994/08/19 20:43:42 wollman Exp $
| 1# $Id: Makefile,v 1.4 1994/08/28 17:21:36 bde Exp $
|
2# 3# Doing a make install builds /usr/share/examples 4 5DIRS=etc FreeBSD_version lkm sunrpc 6NOOBJ= noobj 7 8# Define SHARED to indicate whether you want symbolic links to the system 9# source (``symlinks''), or a separate copy (``copies''); (latter useful 10# in environments where it's not possible to keep /sys publicly readable) 11SHARED?= copies 12 13all clean cleandir depend lint tags: 14 15beforeinstall: ${SHARED} 16 17copies: 18 @${ECHO} installing ${DESTDIR}/usr/share/examples
| 2# 3# Doing a make install builds /usr/share/examples 4 5DIRS=etc FreeBSD_version lkm sunrpc 6NOOBJ= noobj 7 8# Define SHARED to indicate whether you want symbolic links to the system 9# source (``symlinks''), or a separate copy (``copies''); (latter useful 10# in environments where it's not possible to keep /sys publicly readable) 11SHARED?= copies 12 13all clean cleandir depend lint tags: 14 15beforeinstall: ${SHARED} 16 17copies: 18 @${ECHO} installing ${DESTDIR}/usr/share/examples
|
19 @rm -rf ${DESTDIR}/usr/share/examples 20 @-mkdir ${DESTDIR}/usr/share/examples 21 @tar cf - ${DIRS} | \ 22 (cd ${DESTDIR}/usr/share/examples; tar xpfB -); 23 @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples 24 @chmod -R a-w ${DESTDIR}/usr/share/examples
| 19 @-for a in ${DIRS}; do \ 20 rm -rf ${DESTDIR}/usr/share/examples/$$a; \ 21 cp =rp $$a ${DESTDIR}/usr/share/examples; \ 22 done
|
25 26symlinks: 27 @${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples
| 23 24symlinks: 25 @${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples
|
28 @rm -rf ${DESTDIR}/usr/share/examples 29 @-mkdir ${DESTDIR}/usr/share/examples
| |
30 @-for a in ${DIRS}; do \
| 26 @-for a in ${DIRS}; do \
|
| 27 rm -rf ${DESTDIR}/usr/share/examples/$$a; \
|
31 ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \ 32 done
| 28 ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \ 29 done
|
33 @chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples 34 @chmod -R a-w ${DESTDIR}/usr/share/examples
| |
35 36.include <bsd.prog.mk>
| 30 31.include <bsd.prog.mk>
|