1# $FreeBSD$ 2# 3# Doing a make install builds /usr/share/examples 4 5LDIRS= BSD_daemon \ 6 FreeBSD_version \ 7 IPv6 \ 8 atm \ 9 bootforth \ 10 cvsup \ 11 diskless \ 12 drivers \ 13 etc \ 14 find_interface \ 15 ibcs2 \ 16 ipfw \ 17 isdn \ 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 atm/NOTES \ 47 atm/README \ 48 atm/Startup \ 49 atm/atm-config.sh \ 50 atm/atm-sockets.txt \ 51 atm/cpcs-design.txt \ 52 atm/fore-microcode.txt \ 53 atm/sscf-design.txt \ 54 atm/sscop-design.txt \ 55 bootforth/README \ 56 bootforth/boot.4th \ 57 bootforth/frames.4th \ 58 bootforth/loader.rc \ 59 bootforth/menu.4th \ 60 bootforth/menuconf.4th \ 61 bootforth/screen.4th \ 62 cvsup/README \ 63 cvsup/cvs-supfile \ 64 cvsup/doc-supfile \ 65 cvsup/gnats-supfile \ 66 cvsup/ports-supfile \ 67 cvsup/refuse \ 68 cvsup/refuse.README \ 69 cvsup/stable-supfile \ 70 cvsup/standard-supfile \ 71 cvsup/www-supfile \ 72 diskless/ME \ 73 diskless/README.BOOTP \ 74 diskless/README.TEMPLATING \ 75 diskless/clone_root \ 76 drivers/README \ 77 drivers/make_device_driver.sh \ 78 drivers/make_pseudo_driver.sh \ 79 etc/README.examples \ 80 etc/bsd-style-copyright \ 81 etc/make.conf \ 82 find_interface/Makefile \ 83 find_interface/README \ 84 find_interface/find_interface.c \ 85 ibcs2/README \ 86 ibcs2/hello.uu \ 87 ipfw/change_rules.sh \ 88 isdn/FAQ \ 89 isdn/KERNEL \ 90 isdn/Overview \ 91 isdn/README \ 92 isdn/ROADMAP \ 93 isdn/ReleaseNotes \ 94 isdn/Resources \ 95 isdn/SupportedCards \ 96 isdn/ThankYou \ 97 isdn/contrib/README \ 98 isdn/contrib/anleitung.ppp \ 99 isdn/contrib/answer.c \ 100 isdn/contrib/answer.sh \ 101 isdn/contrib/convert.sh \ 102 isdn/contrib/hplay.c \ 103 isdn/contrib/i4b-ppp-newbie.txt \ 104 isdn/contrib/isdnctl \ 105 isdn/contrib/isdnd_acct \ 106 isdn/contrib/isdnd_acct.pl \ 107 isdn/contrib/isdntelmux.c \ 108 isdn/contrib/mrtg-isp0.sh \ 109 isdn/i4brunppp/Makefile \ 110 isdn/i4brunppp/README \ 111 isdn/i4brunppp/i4brunppp-isdnd.rc \ 112 isdn/i4brunppp/i4brunppp.8 \ 113 isdn/i4brunppp/i4brunppp.c \ 114 isdn/v21/Makefile \ 115 isdn/v21/README \ 116 isdn/v21/v21modem.c \ 117 kld/Makefile \ 118 kld/cdev/Makefile \ 119 kld/cdev/README \ 120 kld/cdev/module/Makefile \ 121 kld/cdev/module/cdev.c \ 122 kld/cdev/module/cdev.h \ 123 kld/cdev/module/cdevmod.c \ 124 kld/cdev/test/Makefile \ 125 kld/cdev/test/testcdev.c \ 126 kld/dyn_sysctl/Makefile \ 127 kld/dyn_sysctl/README \ 128 kld/dyn_sysctl/dyn_sysctl.c \ 129 kld/syscall/Makefile \ 130 kld/syscall/module/Makefile \ 131 kld/syscall/module/syscall.c \ 132 kld/syscall/test/Makefile \ 133 kld/syscall/test/call.c \ 134 libvgl/Makefile \ 135 libvgl/demo.c \ 136 mdoc/POSIX-copyright \ 137 mdoc/deshallify.sh \ 138 mdoc/example.1 \ 139 mdoc/example.3 \ 140 mdoc/example.4 \ 141 mdoc/example.9 \ 142 netgraph/bluetooth/rc.bluetooth \ 143 netgraph/ether.bridge \ 144 netgraph/frame_relay \ 145 netgraph/ngctl \ 146 netgraph/raw \ 147 netgraph/udp.tunnel \ 148 nwclient/dot.nwfsrc \ 149 nwclient/nwfs.sh.sample \ 150 perfmon/Makefile \ 151 perfmon/README \ 152 perfmon/perfmon.c \ 153 portal/README \ 154 portal/portal.conf \ 155 ppi/Makefile \ 156 ppi/ppilcd.c \ 157 ppp/chap-auth \ 158 ppp/isdnd.rc \ 159 ppp/login-auth \ 160 ppp/ppp.conf.isdn \ 161 ppp/ppp.conf.sample \ 162 ppp/ppp.conf.span-isp \ 163 ppp/ppp.conf.span-isp.working \ 164 ppp/ppp.linkdown.sample \ 165 ppp/ppp.linkdown.span-isp \ 166 ppp/ppp.linkdown.span-isp.working \ 167 ppp/ppp.linkup.sample \ 168 ppp/ppp.linkup.span-isp \ 169 ppp/ppp.linkup.span-isp.working \ 170 ppp/ppp.secret.sample \ 171 ppp/ppp.secret.span-isp \ 172 ppp/ppp.secret.span-isp.working \ 173 pppd/auth-down.sample \ 174 pppd/auth-up.sample \ 175 pppd/chap-secrets.sample \ 176 pppd/chat.sh.sample \ 177 pppd/ip-down.sample \ 178 pppd/ip-up.sample \ 179 pppd/options.sample \ 180 pppd/pap-secrets.sample \ 181 pppd/ppp.deny.sample \ 182 pppd/ppp.shells.sample \ 183 printing/README \ 184 printing/diablo-if-net \ 185 printing/hpdf \ 186 printing/hpif \ 187 printing/hpof \ 188 printing/hprf \ 189 printing/hpvf \ 190 printing/if-simple \ 191 printing/if-simpleX \ 192 printing/ifhp \ 193 printing/make-ps-header \ 194 printing/netprint \ 195 printing/psdf \ 196 printing/psdfX \ 197 printing/psif \ 198 printing/pstf \ 199 printing/pstfX \ 200 ses/Makefile \ 201 ses/Makefile.inc \ 202 ses/getencstat/Makefile \ 203 ses/getencstat/getencstat.0 \ 204 ses/sesd/Makefile \ 205 ses/sesd/sesd.0 \ 206 ses/setencstat/Makefile \ 207 ses/setencstat/setencstat.0 \ 208 ses/setobjstat/Makefile \ 209 ses/setobjstat/setobjstat.0 \ 210 ses/srcs/chpmon.c \ 211 ses/srcs/eltsub.c \ 212 ses/srcs/getencstat.c \ 213 ses/srcs/getnobj.c \ 214 ses/srcs/getobjmap.c \ 215 ses/srcs/getobjstat.c \ 216 ses/srcs/inienc.c \ 217 ses/srcs/sesd.c \ 218 ses/srcs/setencstat.c \ 219 ses/srcs/setobjstat.c \ 220 scsi_target/Makefile \ 221 scsi_target/scsi_target.c \ 222 scsi_target/scsi_target.h \ 223 scsi_target/scsi_target.8 \ 224 scsi_target/scsi_cmds.c \ 225 slattach/unit-command.sh \ 226 sliplogin/slip.hosts \ 227 sliplogin/slip.login \ 228 sliplogin/slip.logout \ 229 sliplogin/slip.slparms \ 230 startslip/sldown.sh \ 231 startslip/slip.sh \ 232 startslip/slup.sh \ 233 sunrpc/Makefile \ 234 sunrpc/dir/Makefile \ 235 sunrpc/dir/dir.x \ 236 sunrpc/dir/dir_proc.c \ 237 sunrpc/dir/rls.c \ 238 sunrpc/msg/Makefile \ 239 sunrpc/msg/msg.x \ 240 sunrpc/msg/msg_proc.c \ 241 sunrpc/msg/printmsg.c \ 242 sunrpc/msg/rprintmsg.c \ 243 sunrpc/sort/Makefile \ 244 sunrpc/sort/rsort.c \ 245 sunrpc/sort/sort.x \ 246 sunrpc/sort/sort_proc.c 247 248BINDIR= ${SHAREDIR}/examples 249 250NO_OBJ= 251 252# Define SHARED to indicate whether you want symbolic links to the system 253# source (``symlinks''), or a separate copy (``copies''); (latter useful 254# in environments where it's not possible to keep /sys publicly readable) 255SHARED?= copies 256 257beforeinstall: ${SHARED} etc-examples 258.ORDER: ${SHARED} etc-examples 259 260copies: 261.for i in ${LDIRS} 262 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \ 263 rm -f ${DESTDIR}${BINDIR}/$i; \ 264 fi 265.endfor 266 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 267 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr 268.for file in ${XFILES} 269 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ 270 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file} 271.endfor 272 273symlinks: 274.for i in ${LDIRS} 275 rm -rf ${DESTDIR}${BINDIR}/$i 276 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i 277.endfor 278 279etc-examples: 280.if ${SHARED} != "symlinks" 281 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 282.endif 283 284.if ${SHARED} != "symlinks" 285SUBDIR= smbfs 286.if !defined(NO_IPFILTER) 287SUBDIR+=ipfilter 288.endif 289.if !defined(NO_PF) 290SUBDIR+=pf 291.endif 292.endif 293 294.include <bsd.subdir.mk> 295