1# $FreeBSD$ 2# 3# Doing a make install builds /usr/share/examples 4 5.include <bsd.own.mk> 6 7LDIRS= BSD_daemon \ 8 FreeBSD_version \ 9 IPv6 \ 10 bootforth \ 11 csh \ 12 cvsup \ 13 diskless \ 14 drivers \ 15 etc \ 16 find_interface \ 17 hast \ 18 ibcs2 \ 19 indent \ 20 ipfw \ 21 jails \ 22 kld \ 23 libusb20 \ 24 libvgl \ 25 mdoc \ 26 netgraph \ 27 nwclient \ 28 perfmon \ 29 portal \ 30 ppi \ 31 ppp \ 32 printing \ 33 ses \ 34 scsi_target \ 35 sunrpc 36 37XFILES= BSD_daemon/FreeBSD.pfa \ 38 BSD_daemon/README \ 39 BSD_daemon/beastie.eps \ 40 BSD_daemon/beastie.fig \ 41 BSD_daemon/eps.patch \ 42 BSD_daemon/poster.sh \ 43 FreeBSD_version/FreeBSD_version.c \ 44 FreeBSD_version/Makefile \ 45 FreeBSD_version/README \ 46 IPv6/USAGE \ 47 bootforth/README \ 48 bootforth/boot.4th \ 49 bootforth/frames.4th \ 50 bootforth/loader.rc \ 51 bootforth/menu.4th \ 52 bootforth/menuconf.4th \ 53 bootforth/screen.4th \ 54 csh/dot.cshrc \ 55 cvsup/README \ 56 cvsup/cvs-supfile \ 57 cvsup/gnats-supfile \ 58 cvsup/ports-supfile \ 59 cvsup/refuse \ 60 cvsup/refuse.README \ 61 cvsup/stable-supfile \ 62 cvsup/standard-supfile \ 63 diskless/ME \ 64 diskless/README.BOOTP \ 65 diskless/README.TEMPLATING \ 66 diskless/clone_root \ 67 drivers/README \ 68 drivers/make_device_driver.sh \ 69 drivers/make_pseudo_driver.sh \ 70 etc/README.examples \ 71 etc/bsd-style-copyright \ 72 etc/make.conf \ 73 find_interface/Makefile \ 74 find_interface/README \ 75 find_interface/find_interface.c \ 76 hast/ucarp.sh \ 77 hast/ucarp_down.sh \ 78 hast/ucarp_up.sh \ 79 hast/vip-down.sh \ 80 hast/vip-up.sh \ 81 ibcs2/README \ 82 ibcs2/hello.uu \ 83 indent/indent.pro \ 84 ipfw/change_rules.sh \ 85 jails/README \ 86 kld/Makefile \ 87 kld/cdev/Makefile \ 88 kld/cdev/README \ 89 kld/cdev/module/Makefile \ 90 kld/cdev/module/cdev.c \ 91 kld/cdev/module/cdev.h \ 92 kld/cdev/module/cdevmod.c \ 93 kld/cdev/test/Makefile \ 94 kld/cdev/test/testcdev.c \ 95 kld/dyn_sysctl/Makefile \ 96 kld/dyn_sysctl/README \ 97 kld/dyn_sysctl/dyn_sysctl.c \ 98 kld/firmware/Makefile \ 99 kld/firmware/README \ 100 kld/firmware/fwconsumer/Makefile \ 101 kld/firmware/fwconsumer/fw_consumer.c \ 102 kld/firmware/fwimage/Makefile \ 103 kld/firmware/fwimage/firmware.img.uu \ 104 kld/khelp/Makefile \ 105 kld/khelp/README \ 106 kld/khelp/h_example.c \ 107 kld/syscall/Makefile \ 108 kld/syscall/module/Makefile \ 109 kld/syscall/module/syscall.c \ 110 kld/syscall/test/Makefile \ 111 kld/syscall/test/call.c \ 112 libusb20/Makefile \ 113 libusb20/README \ 114 libusb20/aux.c \ 115 libusb20/aux.h \ 116 libusb20/bulk.c \ 117 libusb20/control.c \ 118 libvgl/Makefile \ 119 libvgl/demo.c \ 120 mdoc/POSIX-copyright \ 121 mdoc/deshallify.sh \ 122 mdoc/example.1 \ 123 mdoc/example.3 \ 124 mdoc/example.4 \ 125 mdoc/example.9 \ 126 netgraph/ether.bridge \ 127 netgraph/frame_relay \ 128 netgraph/ngctl \ 129 netgraph/raw \ 130 netgraph/udp.tunnel \ 131 netgraph/virtual.chain \ 132 netgraph/virtual.lan \ 133 nwclient/dot.nwfsrc \ 134 nwclient/nwfs.sh.sample \ 135 perfmon/Makefile \ 136 perfmon/README \ 137 perfmon/perfmon.c \ 138 portal/README \ 139 portal/portal.conf \ 140 ppi/Makefile \ 141 ppi/ppilcd.c \ 142 ppp/chap-auth \ 143 ppp/login-auth \ 144 ppp/ppp.conf.sample \ 145 ppp/ppp.conf.span-isp \ 146 ppp/ppp.conf.span-isp.working \ 147 ppp/ppp.linkdown.sample \ 148 ppp/ppp.linkdown.span-isp \ 149 ppp/ppp.linkdown.span-isp.working \ 150 ppp/ppp.linkup.sample \ 151 ppp/ppp.linkup.span-isp \ 152 ppp/ppp.linkup.span-isp.working \ 153 ppp/ppp.secret.sample \ 154 ppp/ppp.secret.span-isp \ 155 ppp/ppp.secret.span-isp.working \ 156 printing/README \ 157 printing/diablo-if-net \ 158 printing/hpdf \ 159 printing/hpif \ 160 printing/hpof \ 161 printing/hprf \ 162 printing/hpvf \ 163 printing/if-simple \ 164 printing/if-simpleX \ 165 printing/ifhp \ 166 printing/make-ps-header \ 167 printing/netprint \ 168 printing/psdf \ 169 printing/psdfX \ 170 printing/psif \ 171 printing/pstf \ 172 printing/pstfX \ 173 ses/Makefile \ 174 ses/Makefile.inc \ 175 ses/getencstat/Makefile \ 176 ses/getencstat/getencstat.0 \ 177 ses/sesd/Makefile \ 178 ses/sesd/sesd.0 \ 179 ses/setencstat/Makefile \ 180 ses/setencstat/setencstat.0 \ 181 ses/setobjstat/Makefile \ 182 ses/setobjstat/setobjstat.0 \ 183 ses/srcs/chpmon.c \ 184 ses/srcs/eltsub.c \ 185 ses/srcs/eltsub.h \ 186 ses/srcs/getencstat.c \ 187 ses/srcs/getnobj.c \ 188 ses/srcs/getobjmap.c \ 189 ses/srcs/getobjstat.c \ 190 ses/srcs/inienc.c \ 191 ses/srcs/sesd.c \ 192 ses/srcs/setencstat.c \ 193 ses/srcs/setobjstat.c \ 194 scsi_target/Makefile \ 195 scsi_target/scsi_target.c \ 196 scsi_target/scsi_target.h \ 197 scsi_target/scsi_target.8 \ 198 scsi_target/scsi_cmds.c \ 199 sunrpc/Makefile \ 200 sunrpc/dir/Makefile \ 201 sunrpc/dir/dir.x \ 202 sunrpc/dir/dir_proc.c \ 203 sunrpc/dir/rls.c \ 204 sunrpc/msg/Makefile \ 205 sunrpc/msg/msg.x \ 206 sunrpc/msg/msg_proc.c \ 207 sunrpc/msg/printmsg.c \ 208 sunrpc/msg/rprintmsg.c \ 209 sunrpc/sort/Makefile \ 210 sunrpc/sort/rsort.c \ 211 sunrpc/sort/sort.x \ 212 sunrpc/sort/sort_proc.c 213 214BINDIR= ${SHAREDIR}/examples 215 216NO_OBJ= 217 218# Define SHARED to indicate whether you want symbolic links to the system 219# source (``symlinks''), or a separate copy (``copies''); (latter useful 220# in environments where it's not possible to keep /sys publicly readable) 221SHARED?= copies 222 223beforeinstall: ${SHARED} etc-examples 224.ORDER: ${SHARED} etc-examples 225 226copies: 227.for i in ${LDIRS} 228 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \ 229 rm -f ${DESTDIR}${BINDIR}/$i; \ 230 fi 231.endfor 232 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 233 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr 234.for file in ${XFILES} 235 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ 236 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file} 237.endfor 238 239symlinks: 240.for i in ${LDIRS} 241 rm -rf ${DESTDIR}${BINDIR}/$i 242 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i 243.endfor 244 245etc-examples: 246.if ${SHARED} != "symlinks" 247 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 248.endif 249 250.if ${SHARED} != "symlinks" 251SUBDIR= smbfs 252.if ${MK_IPFILTER} != "no" 253SUBDIR+=ipfilter 254.endif 255.if ${MK_PF} != "no" 256SUBDIR+=pf 257.endif 258.endif 259 260.include <bsd.subdir.mk> 261