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