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