150476Speter# $FreeBSD$ 21987Swollman# 31987Swollman# Doing a make install builds /usr/share/examples 41987Swollman 5156813Sru.include <bsd.own.mk> 6156813Sru 7100346SruLDIRS= BSD_daemon \ 8100346Sru FreeBSD_version \ 9100346Sru IPv6 \ 10100346Sru bootforth \ 11234978Seadler csh \ 12100346Sru cvsup \ 13100346Sru diskless \ 14100346Sru drivers \ 15100346Sru etc \ 16100346Sru find_interface \ 17204076Spjd hast \ 18100346Sru ibcs2 \ 19206996Savg indent \ 20100346Sru ipfw \ 21214309Sjulian jails \ 22100346Sru kld \ 23100346Sru libvgl \ 24100346Sru mdoc \ 25100346Sru netgraph \ 26100346Sru nwclient \ 27100346Sru perfmon \ 28100346Sru portal \ 29100346Sru ppi \ 30100346Sru ppp \ 31100346Sru printing \ 32100346Sru ses \ 33100346Sru scsi_target \ 34132211Sscottl sunrpc 354257Sphk 36100346SruXFILES= BSD_daemon/FreeBSD.pfa \ 37100346Sru BSD_daemon/README \ 38100346Sru BSD_daemon/beastie.eps \ 39100346Sru BSD_daemon/beastie.fig \ 40100346Sru BSD_daemon/eps.patch \ 41100346Sru BSD_daemon/poster.sh \ 42100346Sru FreeBSD_version/FreeBSD_version.c \ 43100346Sru FreeBSD_version/Makefile \ 44100346Sru FreeBSD_version/README \ 45100346Sru IPv6/USAGE \ 46100346Sru bootforth/README \ 47100346Sru bootforth/boot.4th \ 48100346Sru bootforth/frames.4th \ 49100346Sru bootforth/loader.rc \ 50100346Sru bootforth/menu.4th \ 51100346Sru bootforth/menuconf.4th \ 52100346Sru bootforth/screen.4th \ 53234978Seadler csh/dot.cshrc \ 54100346Sru cvsup/README \ 55100346Sru cvsup/cvs-supfile \ 56100346Sru cvsup/gnats-supfile \ 57100346Sru cvsup/stable-supfile \ 58100346Sru cvsup/standard-supfile \ 59100346Sru diskless/ME \ 60100346Sru diskless/README.BOOTP \ 61100346Sru diskless/README.TEMPLATING \ 62100346Sru diskless/clone_root \ 63100346Sru drivers/README \ 64100346Sru drivers/make_device_driver.sh \ 65100346Sru drivers/make_pseudo_driver.sh \ 66100346Sru etc/README.examples \ 67100346Sru etc/bsd-style-copyright \ 68100346Sru etc/make.conf \ 69100346Sru find_interface/Makefile \ 70100346Sru find_interface/README \ 71100346Sru find_interface/find_interface.c \ 72204076Spjd hast/ucarp.sh \ 73204076Spjd hast/ucarp_down.sh \ 74204076Spjd hast/ucarp_up.sh \ 75204076Spjd hast/vip-down.sh \ 76204076Spjd hast/vip-up.sh \ 77100346Sru ibcs2/README \ 78100346Sru ibcs2/hello.uu \ 79206996Savg indent/indent.pro \ 80100346Sru ipfw/change_rules.sh \ 81214309Sjulian jails/README \ 82100346Sru kld/Makefile \ 83100346Sru kld/cdev/Makefile \ 84100346Sru kld/cdev/README \ 85100346Sru kld/cdev/module/Makefile \ 86100346Sru kld/cdev/module/cdev.c \ 87100346Sru kld/cdev/module/cdev.h \ 88100346Sru kld/cdev/module/cdevmod.c \ 89100346Sru kld/cdev/test/Makefile \ 90100346Sru kld/cdev/test/testcdev.c \ 91100346Sru kld/dyn_sysctl/Makefile \ 92100346Sru kld/dyn_sysctl/README \ 93100346Sru kld/dyn_sysctl/dyn_sysctl.c \ 94200440Santoine kld/firmware/Makefile \ 95200440Santoine kld/firmware/README \ 96200440Santoine kld/firmware/fwconsumer/Makefile \ 97200440Santoine kld/firmware/fwconsumer/fw_consumer.c \ 98200440Santoine kld/firmware/fwimage/Makefile \ 99220256Semaste kld/firmware/fwimage/firmware.img.uu \ 100218914Slstewart kld/khelp/Makefile \ 101218914Slstewart kld/khelp/README \ 102218914Slstewart kld/khelp/h_example.c \ 103100346Sru kld/syscall/Makefile \ 104100346Sru kld/syscall/module/Makefile \ 105100346Sru kld/syscall/module/syscall.c \ 106100346Sru kld/syscall/test/Makefile \ 107100346Sru kld/syscall/test/call.c \ 108100346Sru libvgl/Makefile \ 109100346Sru libvgl/demo.c \ 110139989Ssimon mdoc/POSIX-copyright \ 111139989Ssimon mdoc/deshallify.sh \ 112100346Sru mdoc/example.1 \ 113100346Sru mdoc/example.3 \ 114100346Sru mdoc/example.4 \ 115140134Skeramida mdoc/example.9 \ 116100346Sru netgraph/ether.bridge \ 117100346Sru netgraph/frame_relay \ 118100346Sru netgraph/ngctl \ 119100346Sru netgraph/raw \ 120100346Sru netgraph/udp.tunnel \ 121214309Sjulian netgraph/virtual.chain \ 122214309Sjulian netgraph/virtual.lan \ 123100346Sru nwclient/dot.nwfsrc \ 124100346Sru nwclient/nwfs.sh.sample \ 125100346Sru perfmon/Makefile \ 126100346Sru perfmon/README \ 127100346Sru perfmon/perfmon.c \ 128100346Sru portal/README \ 129100346Sru portal/portal.conf \ 130100346Sru ppi/Makefile \ 131100346Sru ppi/ppilcd.c \ 132100346Sru ppp/chap-auth \ 133100346Sru ppp/login-auth \ 134100346Sru ppp/ppp.conf.sample \ 135100346Sru ppp/ppp.conf.span-isp \ 136100346Sru ppp/ppp.conf.span-isp.working \ 137100346Sru ppp/ppp.linkdown.sample \ 138100346Sru ppp/ppp.linkdown.span-isp \ 139100346Sru ppp/ppp.linkdown.span-isp.working \ 140100346Sru ppp/ppp.linkup.sample \ 141100346Sru ppp/ppp.linkup.span-isp \ 142100346Sru ppp/ppp.linkup.span-isp.working \ 143100346Sru ppp/ppp.secret.sample \ 144100346Sru ppp/ppp.secret.span-isp \ 145100346Sru ppp/ppp.secret.span-isp.working \ 146100346Sru printing/README \ 147100346Sru printing/diablo-if-net \ 148100346Sru printing/hpdf \ 149100346Sru printing/hpif \ 150100346Sru printing/hpof \ 151100346Sru printing/hprf \ 152100346Sru printing/hpvf \ 153100346Sru printing/if-simple \ 154100346Sru printing/if-simpleX \ 155100346Sru printing/ifhp \ 156100346Sru printing/make-ps-header \ 157100346Sru printing/netprint \ 158100346Sru printing/psdf \ 159100346Sru printing/psdfX \ 160100346Sru printing/psif \ 161100346Sru printing/pstf \ 162100346Sru printing/pstfX \ 163100346Sru ses/Makefile \ 164100346Sru ses/Makefile.inc \ 165100346Sru ses/getencstat/Makefile \ 166100346Sru ses/getencstat/getencstat.0 \ 167100346Sru ses/sesd/Makefile \ 168100346Sru ses/sesd/sesd.0 \ 169100346Sru ses/setencstat/Makefile \ 170100346Sru ses/setencstat/setencstat.0 \ 171100346Sru ses/setobjstat/Makefile \ 172100346Sru ses/setobjstat/setobjstat.0 \ 173100346Sru ses/srcs/chpmon.c \ 174100346Sru ses/srcs/eltsub.c \ 175222337Smav ses/srcs/eltsub.h \ 176100346Sru ses/srcs/getencstat.c \ 177100346Sru ses/srcs/getnobj.c \ 178100346Sru ses/srcs/getobjmap.c \ 179100346Sru ses/srcs/getobjstat.c \ 180100346Sru ses/srcs/inienc.c \ 181100346Sru ses/srcs/sesd.c \ 182100346Sru ses/srcs/setencstat.c \ 183100346Sru ses/srcs/setobjstat.c \ 184100346Sru scsi_target/Makefile \ 185100346Sru scsi_target/scsi_target.c \ 186107215Snjl scsi_target/scsi_target.h \ 187107215Snjl scsi_target/scsi_target.8 \ 188107215Snjl scsi_target/scsi_cmds.c \ 189100346Sru sunrpc/Makefile \ 190100346Sru sunrpc/dir/Makefile \ 191100346Sru sunrpc/dir/dir.x \ 192100346Sru sunrpc/dir/dir_proc.c \ 193100346Sru sunrpc/dir/rls.c \ 194100346Sru sunrpc/msg/Makefile \ 195100346Sru sunrpc/msg/msg.x \ 196100346Sru sunrpc/msg/msg_proc.c \ 197100346Sru sunrpc/msg/printmsg.c \ 198100346Sru sunrpc/msg/rprintmsg.c \ 199100346Sru sunrpc/sort/Makefile \ 200100346Sru sunrpc/sort/rsort.c \ 201100346Sru sunrpc/sort/sort.x \ 202132211Sscottl sunrpc/sort/sort_proc.c 2034257Sphk 204100346SruBINDIR= ${SHAREDIR}/examples 2051987Swollman 206139103SruNO_OBJ= 207100346Sru 20854351Smarcel# Define SHARED to indicate whether you want symbolic links to the system 20954351Smarcel# source (``symlinks''), or a separate copy (``copies''); (latter useful 21054351Smarcel# in environments where it's not possible to keep /sys publicly readable) 21154351SmarcelSHARED?= copies 21254351Smarcel 213100346Srubeforeinstall: ${SHARED} etc-examples 214100346Sru.ORDER: ${SHARED} etc-examples 2152365Sbde 216100346Srucopies: 217100346Sru.for i in ${LDIRS} 218104288Sru if [ -L ${DESTDIR}${BINDIR}/$i ]; then \ 219100346Sru rm -f ${DESTDIR}${BINDIR}/$i; \ 220100346Sru fi 22113537Sbde.endfor 222100346Sru mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 223100346Sru -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr 224100346Sru.for file in ${XFILES} 225100872Sru ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ 226100346Sru ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file} 22713537Sbde.endfor 2281987Swollman 229100346Srusymlinks: 230100346Sru.for i in ${LDIRS} 231100346Sru rm -rf ${DESTDIR}${BINDIR}/$i 232100346Sru ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i 23354351Smarcel.endfor 23454351Smarcel 23554351Smarceletc-examples: 23654351Smarcel.if ${SHARED} != "symlinks" 23754351Smarcel (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 23854351Smarcel.endif 23954351Smarcel 24085214Sdarrenr.if ${SHARED} != "symlinks" 24192868SruSUBDIR= smbfs 242156813Sru.if ${MK_IPFILTER} != "no" 24392868SruSUBDIR+=ipfilter 24485214Sdarrenr.endif 245156813Sru.if ${MK_PF} != "no" 246135184SmlaierSUBDIR+=pf 24792868Sru.endif 248135184Smlaier.endif 24985214Sdarrenr 25085214Sdarrenr.include <bsd.subdir.mk> 251