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