2 # Doing a make install builds /usr/share/examples
7 FILESDIR= ${SHAREDIR}/examples
44 .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64"
45 .if ${MK_BHYVE} != "no"
50 PACKAGE_bhyve/vmrun.sh= bhyve
54 SE_DIRS+= FreeBSD_version
61 SE_BOOTFORTH_PACKAGE=bootloader
78 make_device_driver.sh \
87 SE_DIRS+= find_interface
99 .if ${MK_IPFILTER} != "no"
105 SE_IPFW= change_rules.sh
126 SE_DIRS+= kld/cdev/module
127 SE_KLD_CDEV_MODULE= \
133 SE_DIRS+= kld/cdev/test
138 SE_DIRS+= kld/dyn_sysctl
144 SE_DIRS+= kld/firmware
149 SE_DIRS+= kld/firmware/fwconsumer
150 SE_KLD_FIRMWARE_FWCONSUMER= \
154 SE_DIRS+= kld/firmware/fwimage
155 SE_KLD_FIRMWARE_FWIMAGE= \
165 SE_DIRS+= kld/syscall
166 SE_KLD_SYSCALL= Makefile
168 SE_DIRS+= kld/syscall/module
169 SE_KLD_SYSCALL_MODULE= \
173 SE_DIRS+= kld/syscall/test
174 SE_KLD_SYSCALL_TEST= \
210 .if ${MK_STAGING} == "no"
238 ppp.conf.span-isp.working \
239 ppp.linkdown.sample \
240 ppp.linkdown.span-isp \
241 ppp.linkdown.span-isp.working \
243 ppp.linkup.span-isp \
244 ppp.linkup.span-isp.working \
246 ppp.secret.span-isp \
247 ppp.secret.span-isp.working
250 SE_PRINTINGPACKAGE=lp
274 SE_DIRS+= ses/getencstat
284 SE_DIRS+= ses/setencstat
289 SE_DIRS+= ses/setobjstat
308 SE_DIRS+= scsi_target
342 SE_DIRS+= sunrpc/sort
349 .if ${MK_EFI} != "no"
352 SE_UEFISIGN= uefikeys
353 SE_UEFISIGNPACKAGE=efi-tools
357 SE_YPLDAP= ypldap.conf
360 .if ${MK_HAST} != "no"
371 .if ${MK_USB} != "no"
384 # Setup the FILES_GROUPS for all DIRS variables above.
385 # The variables are prefixed by 'SE_' to prevent variable collision in
386 # other parts of the system
388 .for f in ${SE_${d:tu:C/\//_/g}}
389 SER_${d:tu:C/\//_/g}+= ${d}/${f}
391 FILESGROUPS+= SER_${d:tu:C/\//_/g}
392 SER_${d:tu:C/\//_/g}DIR+= ${SHAREDIR}/examples/${d}
393 .if ${SE_${d:tu:C/\//_/g}PACKAGE:U} != ""
394 SER_${d:tu:C/\//_/g}PACKAGE= ${SE_${d:tu:C/\//_/g}PACKAGE}
396 SER_${d:tu:C/\//_/g}PACKAGE= examples
400 BINDIR= ${SHAREDIR}/examples
402 beforeinstall: copies
403 META_TARGETS+= copies
407 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
408 rm -f ${DESTDIR}${BINDIR}/$i; \
415 SUBDIR.${MK_TESTS}+= tests
419 .include <bsd.prog.mk>