Makefile revision 214309
150476Speter# $FreeBSD: head/share/examples/Makefile 214309 2010-10-24 23:25:14Z julian $ 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 \ 11100346Sru cvsup \ 12100346Sru diskless \ 13100346Sru drivers \ 14100346Sru etc \ 15100346Sru find_interface \ 16204076Spjd hast \ 17100346Sru ibcs2 \ 18206996Savg indent \ 19100346Sru ipfw \ 20214309Sjulian jails \ 21100346Sru kld \ 22100346Sru libvgl \ 23100346Sru mdoc \ 24100346Sru netgraph \ 25100346Sru nwclient \ 26100346Sru perfmon \ 27100346Sru portal \ 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 \ 45100346Sru bootforth/README \ 46100346Sru bootforth/boot.4th \ 47100346Sru bootforth/frames.4th \ 48100346Sru bootforth/loader.rc \ 49100346Sru bootforth/menu.4th \ 50100346Sru bootforth/menuconf.4th \ 51100346Sru bootforth/screen.4th \ 52100346Sru cvsup/README \ 53100346Sru cvsup/cvs-supfile \ 54100346Sru cvsup/doc-supfile \ 55100346Sru cvsup/gnats-supfile \ 56100346Sru cvsup/ports-supfile \ 57100346Sru cvsup/refuse \ 58100346Sru cvsup/refuse.README \ 59100346Sru cvsup/stable-supfile \ 60100346Sru cvsup/standard-supfile \ 61100346Sru cvsup/www-supfile \ 62100346Sru diskless/ME \ 63100346Sru diskless/README.BOOTP \ 64100346Sru diskless/README.TEMPLATING \ 65100346Sru diskless/clone_root \ 66100346Sru drivers/README \ 67100346Sru drivers/make_device_driver.sh \ 68100346Sru drivers/make_pseudo_driver.sh \ 69100346Sru etc/README.examples \ 70100346Sru etc/bsd-style-copyright \ 71100346Sru etc/make.conf \ 72100346Sru find_interface/Makefile \ 73100346Sru find_interface/README \ 74100346Sru find_interface/find_interface.c \ 75204076Spjd hast/ucarp.sh \ 76204076Spjd hast/ucarp_down.sh \ 77204076Spjd hast/ucarp_up.sh \ 78204076Spjd hast/vip-down.sh \ 79204076Spjd hast/vip-up.sh \ 80100346Sru ibcs2/README \ 81100346Sru ibcs2/hello.uu \ 82206996Savg indent/indent.pro \ 83100346Sru ipfw/change_rules.sh \ 84214309Sjulian jails/README \ 85100346Sru kld/Makefile \ 86100346Sru kld/cdev/Makefile \ 87100346Sru kld/cdev/README \ 88100346Sru kld/cdev/module/Makefile \ 89100346Sru kld/cdev/module/cdev.c \ 90100346Sru kld/cdev/module/cdev.h \ 91100346Sru kld/cdev/module/cdevmod.c \ 92100346Sru kld/cdev/test/Makefile \ 93100346Sru kld/cdev/test/testcdev.c \ 94100346Sru kld/dyn_sysctl/Makefile \ 95100346Sru kld/dyn_sysctl/README \ 96100346Sru kld/dyn_sysctl/dyn_sysctl.c \ 97200440Santoine kld/firmware/Makefile \ 98200440Santoine kld/firmware/README \ 99200440Santoine kld/firmware/fwconsumer/Makefile \ 100200440Santoine kld/firmware/fwconsumer/fw_consumer.c \ 101200440Santoine kld/firmware/fwimage/Makefile \ 102200440Santoine kld/firmware/fwimage/firmware.img \ 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 \ 175100346Sru ses/srcs/getencstat.c \ 176100346Sru ses/srcs/getnobj.c \ 177100346Sru ses/srcs/getobjmap.c \ 178100346Sru ses/srcs/getobjstat.c \ 179100346Sru ses/srcs/inienc.c \ 180100346Sru ses/srcs/sesd.c \ 181100346Sru ses/srcs/setencstat.c \ 182100346Sru ses/srcs/setobjstat.c \ 183100346Sru scsi_target/Makefile \ 184100346Sru scsi_target/scsi_target.c \ 185107215Snjl scsi_target/scsi_target.h \ 186107215Snjl scsi_target/scsi_target.8 \ 187107215Snjl scsi_target/scsi_cmds.c \ 188100346Sru sunrpc/Makefile \ 189100346Sru sunrpc/dir/Makefile \ 190100346Sru sunrpc/dir/dir.x \ 191100346Sru sunrpc/dir/dir_proc.c \ 192100346Sru sunrpc/dir/rls.c \ 193100346Sru sunrpc/msg/Makefile \ 194100346Sru sunrpc/msg/msg.x \ 195100346Sru sunrpc/msg/msg_proc.c \ 196100346Sru sunrpc/msg/printmsg.c \ 197100346Sru sunrpc/msg/rprintmsg.c \ 198100346Sru sunrpc/sort/Makefile \ 199100346Sru sunrpc/sort/rsort.c \ 200100346Sru sunrpc/sort/sort.x \ 201132211Sscottl sunrpc/sort/sort_proc.c 2024257Sphk 203100346SruBINDIR= ${SHAREDIR}/examples 2041987Swollman 205139103SruNO_OBJ= 206100346Sru 20754351Smarcel# Define SHARED to indicate whether you want symbolic links to the system 20854351Smarcel# source (``symlinks''), or a separate copy (``copies''); (latter useful 20954351Smarcel# in environments where it's not possible to keep /sys publicly readable) 21054351SmarcelSHARED?= copies 21154351Smarcel 212100346Srubeforeinstall: ${SHARED} etc-examples 213100346Sru.ORDER: ${SHARED} etc-examples 2142365Sbde 215100346Srucopies: 216100346Sru.for i in ${LDIRS} 217104288Sru if [ -L ${DESTDIR}${BINDIR}/$i ]; then \ 218100346Sru rm -f ${DESTDIR}${BINDIR}/$i; \ 219100346Sru fi 22013537Sbde.endfor 221100346Sru mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 222100346Sru -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr 223100346Sru.for file in ${XFILES} 224100872Sru ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ 225100346Sru ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file} 22613537Sbde.endfor 2271987Swollman 228100346Srusymlinks: 229100346Sru.for i in ${LDIRS} 230100346Sru rm -rf ${DESTDIR}${BINDIR}/$i 231100346Sru ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i 23254351Smarcel.endfor 23354351Smarcel 23454351Smarceletc-examples: 23554351Smarcel.if ${SHARED} != "symlinks" 23654351Smarcel (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 23754351Smarcel.endif 23854351Smarcel 23985214Sdarrenr.if ${SHARED} != "symlinks" 24092868SruSUBDIR= smbfs 241156813Sru.if ${MK_IPFILTER} != "no" 24292868SruSUBDIR+=ipfilter 24385214Sdarrenr.endif 244156813Sru.if ${MK_PF} != "no" 245135184SmlaierSUBDIR+=pf 24692868Sru.endif 247135184Smlaier.endif 24885214Sdarrenr 24985214Sdarrenr.include <bsd.subdir.mk> 250