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