2 # Doing a make install builds /usr/share/examples
7 FILESDIR= ${SHAREDIR}/examples
45 .if ${MACHINE_CPUARCH} == "amd64"
46 .if ${MK_BHYVE} != "no"
50 PACKAGE_bhyve/vmrun.sh= bhyve
54 SE_DIRS+= FreeBSD_version
79 make_device_driver.sh \
88 SE_DIRS+= find_interface
100 .if ${MK_IPFILTER} != "no"
105 SE_IPFW= change_rules.sh
125 SE_DIRS+= kld/cdev/module
126 SE_KLD_CDEV_MODULE= \
132 SE_DIRS+= kld/cdev/test
137 SE_DIRS+= kld/dyn_sysctl
143 SE_DIRS+= kld/firmware
148 SE_DIRS+= kld/firmware/fwconsumer
149 SE_KLD_FIRMWARE_FWCONSUMER= \
153 SE_DIRS+= kld/firmware/fwimage
154 SE_KLD_FIRMWARE_FWIMAGE= \
164 SE_DIRS+= kld/syscall
165 SE_KLD_SYSCALL= Makefile
167 SE_DIRS+= kld/syscall/module
168 SE_KLD_SYSCALL_MODULE= \
172 SE_DIRS+= kld/syscall/test
173 SE_KLD_SYSCALL_TEST= \
209 .if ${MK_STAGING} == "no"
235 ppp.conf.span-isp.working \
236 ppp.linkdown.sample \
237 ppp.linkdown.span-isp \
238 ppp.linkdown.span-isp.working \
240 ppp.linkup.span-isp \
241 ppp.linkup.span-isp.working \
243 ppp.secret.span-isp \
244 ppp.secret.span-isp.working
270 SE_DIRS+= ses/getencstat
280 SE_DIRS+= ses/setencstat
285 SE_DIRS+= ses/setobjstat
304 SE_DIRS+= scsi_target
338 SE_DIRS+= sunrpc/sort
345 .if ${MK_EFI} != "no"
348 SE_UEFISIGN= uefikeys
352 SE_YPLDAP= ypldap.conf
354 .if ${MK_HAST} != "no"
364 .if ${MK_USB} != "no"
377 # Setup the FILES_GROUPS for all DIRS variables above.
378 # The variables are prefixed by 'SE_' to prevent variable collision in
379 # other parts of the system
381 .for f in ${SE_${d:tu:C/\//_/g}}
382 SER_${d:tu:C/\//_/g}+= ${d}/${f}
384 FILESGROUPS+= SER_${d:tu:C/\//_/g}
385 SER_${d:tu:C/\//_/g}DIR+= ${SHAREDIR}/examples/${d}
388 BINDIR= ${SHAREDIR}/examples
390 beforeinstall: copies
391 META_TARGETS+= copies
395 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
396 rm -f ${DESTDIR}${BINDIR}/$i; \
403 SUBDIR.${MK_TESTS}+= tests
407 .include <bsd.prog.mk>