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 \ 10248484Sneel bhyve \ 11100346Sru bootforth \ 12233429Seadler csh \ 13100346Sru diskless \ 14100346Sru drivers \ 15100346Sru etc \ 16100346Sru find_interface \ 17204076Spjd hast \ 18100346Sru ibcs2 \ 19206996Savg indent \ 20100346Sru ipfw \ 21214309Sjulian jails \ 22100346Sru kld \ 23238603Sjoerg libusb20 \ 24100346Sru libvgl \ 25100346Sru mdoc \ 26100346Sru netgraph \ 27100346Sru perfmon \ 28100346Sru ppi \ 29100346Sru ppp \ 30100346Sru printing \ 31100346Sru ses \ 32100346Sru scsi_target \ 33132211Sscottl sunrpc 344257Sphk 35100346SruXFILES= BSD_daemon/FreeBSD.pfa \ 36100346Sru BSD_daemon/README \ 37100346Sru BSD_daemon/beastie.eps \ 38100346Sru BSD_daemon/beastie.fig \ 39100346Sru BSD_daemon/eps.patch \ 40100346Sru BSD_daemon/poster.sh \ 41100346Sru FreeBSD_version/FreeBSD_version.c \ 42100346Sru FreeBSD_version/Makefile \ 43100346Sru FreeBSD_version/README \ 44100346Sru IPv6/USAGE \ 45248484Sneel bhyve/vmrun.sh \ 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 \ 53233429Seadler csh/dot.cshrc \ 54100346Sru diskless/ME \ 55100346Sru diskless/README.BOOTP \ 56100346Sru diskless/README.TEMPLATING \ 57100346Sru diskless/clone_root \ 58100346Sru drivers/README \ 59100346Sru drivers/make_device_driver.sh \ 60100346Sru drivers/make_pseudo_driver.sh \ 61100346Sru etc/README.examples \ 62100346Sru etc/bsd-style-copyright \ 63100346Sru etc/make.conf \ 64100346Sru find_interface/Makefile \ 65100346Sru find_interface/README \ 66100346Sru find_interface/find_interface.c \ 67204076Spjd hast/ucarp.sh \ 68204076Spjd hast/ucarp_down.sh \ 69204076Spjd hast/ucarp_up.sh \ 70204076Spjd hast/vip-down.sh \ 71204076Spjd hast/vip-up.sh \ 72100346Sru ibcs2/README \ 73100346Sru ibcs2/hello.uu \ 74206996Savg indent/indent.pro \ 75100346Sru ipfw/change_rules.sh \ 76214309Sjulian jails/README \ 77100346Sru kld/Makefile \ 78100346Sru kld/cdev/Makefile \ 79100346Sru kld/cdev/README \ 80100346Sru kld/cdev/module/Makefile \ 81100346Sru kld/cdev/module/cdev.c \ 82100346Sru kld/cdev/module/cdev.h \ 83100346Sru kld/cdev/module/cdevmod.c \ 84100346Sru kld/cdev/test/Makefile \ 85100346Sru kld/cdev/test/testcdev.c \ 86100346Sru kld/dyn_sysctl/Makefile \ 87100346Sru kld/dyn_sysctl/README \ 88100346Sru kld/dyn_sysctl/dyn_sysctl.c \ 89200440Santoine kld/firmware/Makefile \ 90200440Santoine kld/firmware/README \ 91200440Santoine kld/firmware/fwconsumer/Makefile \ 92200440Santoine kld/firmware/fwconsumer/fw_consumer.c \ 93200440Santoine kld/firmware/fwimage/Makefile \ 94220256Semaste kld/firmware/fwimage/firmware.img.uu \ 95218914Slstewart kld/khelp/Makefile \ 96218914Slstewart kld/khelp/README \ 97218914Slstewart kld/khelp/h_example.c \ 98100346Sru kld/syscall/Makefile \ 99100346Sru kld/syscall/module/Makefile \ 100100346Sru kld/syscall/module/syscall.c \ 101100346Sru kld/syscall/test/Makefile \ 102100346Sru kld/syscall/test/call.c \ 103238603Sjoerg libusb20/Makefile \ 104238603Sjoerg libusb20/README \ 105269879Semaste libusb20/util.c \ 106269879Semaste libusb20/util.h \ 107238603Sjoerg libusb20/bulk.c \ 108238603Sjoerg libusb20/control.c \ 109100346Sru libvgl/Makefile \ 110100346Sru libvgl/demo.c \ 111139989Ssimon mdoc/POSIX-copyright \ 112139989Ssimon mdoc/deshallify.sh \ 113100346Sru mdoc/example.1 \ 114100346Sru mdoc/example.3 \ 115100346Sru mdoc/example.4 \ 116140134Skeramida mdoc/example.9 \ 117100346Sru netgraph/ether.bridge \ 118100346Sru netgraph/frame_relay \ 119100346Sru netgraph/ngctl \ 120100346Sru netgraph/raw \ 121100346Sru netgraph/udp.tunnel \ 122214309Sjulian netgraph/virtual.chain \ 123214309Sjulian netgraph/virtual.lan \ 124100346Sru perfmon/Makefile \ 125100346Sru perfmon/README \ 126100346Sru perfmon/perfmon.c \ 127100346Sru ppi/Makefile \ 128100346Sru ppi/ppilcd.c \ 129100346Sru ppp/chap-auth \ 130100346Sru ppp/login-auth \ 131100346Sru ppp/ppp.conf.sample \ 132100346Sru ppp/ppp.conf.span-isp \ 133100346Sru ppp/ppp.conf.span-isp.working \ 134100346Sru ppp/ppp.linkdown.sample \ 135100346Sru ppp/ppp.linkdown.span-isp \ 136100346Sru ppp/ppp.linkdown.span-isp.working \ 137100346Sru ppp/ppp.linkup.sample \ 138100346Sru ppp/ppp.linkup.span-isp \ 139100346Sru ppp/ppp.linkup.span-isp.working \ 140100346Sru ppp/ppp.secret.sample \ 141100346Sru ppp/ppp.secret.span-isp \ 142100346Sru ppp/ppp.secret.span-isp.working \ 143100346Sru printing/README \ 144100346Sru printing/diablo-if-net \ 145100346Sru printing/hpdf \ 146100346Sru printing/hpif \ 147100346Sru printing/hpof \ 148100346Sru printing/hprf \ 149100346Sru printing/hpvf \ 150100346Sru printing/if-simple \ 151100346Sru printing/if-simpleX \ 152100346Sru printing/ifhp \ 153100346Sru printing/make-ps-header \ 154100346Sru printing/netprint \ 155100346Sru printing/psdf \ 156100346Sru printing/psdfX \ 157100346Sru printing/psif \ 158100346Sru printing/pstf \ 159100346Sru printing/pstfX \ 160100346Sru ses/Makefile \ 161100346Sru ses/Makefile.inc \ 162100346Sru ses/getencstat/Makefile \ 163100346Sru ses/getencstat/getencstat.0 \ 164100346Sru ses/sesd/Makefile \ 165100346Sru ses/sesd/sesd.0 \ 166100346Sru ses/setencstat/Makefile \ 167100346Sru ses/setencstat/setencstat.0 \ 168100346Sru ses/setobjstat/Makefile \ 169100346Sru ses/setobjstat/setobjstat.0 \ 170100346Sru ses/srcs/chpmon.c \ 171100346Sru ses/srcs/eltsub.c \ 172222337Smav ses/srcs/eltsub.h \ 173100346Sru ses/srcs/getencstat.c \ 174100346Sru ses/srcs/getnobj.c \ 175100346Sru ses/srcs/getobjmap.c \ 176100346Sru ses/srcs/getobjstat.c \ 177100346Sru ses/srcs/inienc.c \ 178100346Sru ses/srcs/sesd.c \ 179100346Sru ses/srcs/setencstat.c \ 180100346Sru ses/srcs/setobjstat.c \ 181100346Sru scsi_target/Makefile \ 182100346Sru scsi_target/scsi_target.c \ 183107215Snjl scsi_target/scsi_target.h \ 184107215Snjl scsi_target/scsi_target.8 \ 185107215Snjl scsi_target/scsi_cmds.c \ 186100346Sru sunrpc/Makefile \ 187100346Sru sunrpc/dir/Makefile \ 188100346Sru sunrpc/dir/dir.x \ 189100346Sru sunrpc/dir/dir_proc.c \ 190100346Sru sunrpc/dir/rls.c \ 191100346Sru sunrpc/msg/Makefile \ 192100346Sru sunrpc/msg/msg.x \ 193100346Sru sunrpc/msg/msg_proc.c \ 194100346Sru sunrpc/msg/printmsg.c \ 195100346Sru sunrpc/msg/rprintmsg.c \ 196100346Sru sunrpc/sort/Makefile \ 197100346Sru sunrpc/sort/rsort.c \ 198100346Sru sunrpc/sort/sort.x \ 199132211Sscottl sunrpc/sort/sort_proc.c 2004257Sphk 201100346SruBINDIR= ${SHAREDIR}/examples 2021987Swollman 203139103SruNO_OBJ= 204100346Sru 20554351Smarcel# Define SHARED to indicate whether you want symbolic links to the system 20654351Smarcel# source (``symlinks''), or a separate copy (``copies''); (latter useful 20754351Smarcel# in environments where it's not possible to keep /sys publicly readable) 20854351SmarcelSHARED?= copies 20954351Smarcel 210100346Srubeforeinstall: ${SHARED} etc-examples 211100346Sru.ORDER: ${SHARED} etc-examples 2122365Sbde 213100346Srucopies: 214100346Sru.for i in ${LDIRS} 215104288Sru if [ -L ${DESTDIR}${BINDIR}/$i ]; then \ 216100346Sru rm -f ${DESTDIR}${BINDIR}/$i; \ 217100346Sru fi 21813537Sbde.endfor 219100346Sru mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 220100346Sru -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr 221100346Sru.for file in ${XFILES} 222100872Sru ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ 223100346Sru ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file} 22413537Sbde.endfor 2251987Swollman 226100346Srusymlinks: 227100346Sru.for i in ${LDIRS} 228100346Sru rm -rf ${DESTDIR}${BINDIR}/$i 229100346Sru ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i 23054351Smarcel.endfor 23154351Smarcel 23254351Smarceletc-examples: 23354351Smarcel.if ${SHARED} != "symlinks" 23454351Smarcel (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 23554351Smarcel.endif 23654351Smarcel 23785214Sdarrenr.if ${SHARED} != "symlinks" 238252356SdavideSUBDIR= smbfs 239156813Sru.if ${MK_IPFILTER} != "no" 24092868SruSUBDIR+=ipfilter 24185214Sdarrenr.endif 242156813Sru.if ${MK_PF} != "no" 243135184SmlaierSUBDIR+=pf 24492868Sru.endif 245135184Smlaier.endif 24685214Sdarrenr 247260037Sjmmv.if ${MK_TESTS} != "no" 248260037SjmmvSUBDIR+=tests 249260037Sjmmv.endif 250260037Sjmmv 25185214Sdarrenr.include <bsd.subdir.mk> 252