3 # Doing a make install builds /usr/share/examples
8 FILESDIR= ${SHAREDIR}/examples
47 .if ${MACHINE_CPUARCH} == "amd64"
48 .if ${MK_BHYVE} != "no"
52 PACKAGE_bhyve/vmrun.sh= bhyve
56 SE_DIRS+= FreeBSD_version
88 make_device_driver.sh \
97 SE_DIRS+= find_interface
109 SE_INDENT= indent.pro
111 .if ${MK_IPFILTER} != "no"
116 SE_IPFW= change_rules.sh
136 SE_DIRS+= kld/cdev/module
137 SE_KLD_CDEV_MODULE= \
143 SE_DIRS+= kld/cdev/test
148 SE_DIRS+= kld/dyn_sysctl
154 SE_DIRS+= kld/firmware
159 SE_DIRS+= kld/firmware/fwconsumer
160 SE_KLD_FIRMWARE_FWCONSUMER= \
164 SE_DIRS+= kld/firmware/fwimage
165 SE_KLD_FIRMWARE_FWIMAGE= \
175 SE_DIRS+= kld/syscall
176 SE_KLD_SYSCALL= Makefile
178 SE_DIRS+= kld/syscall/module
179 SE_KLD_SYSCALL_MODULE= \
183 SE_DIRS+= kld/syscall/test
184 SE_KLD_SYSCALL_TEST= \
244 ppp.conf.span-isp.working \
245 ppp.linkdown.sample \
246 ppp.linkdown.span-isp \
247 ppp.linkdown.span-isp.working \
249 ppp.linkup.span-isp \
250 ppp.linkup.span-isp.working \
252 ppp.secret.span-isp \
253 ppp.secret.span-isp.working
279 SE_DIRS+= ses/getencstat
289 SE_DIRS+= ses/setencstat
294 SE_DIRS+= ses/setobjstat
313 SE_DIRS+= scsi_target
345 SE_DIRS+= sunrpc/sort
352 .if ${MK_EFI} != "no"
355 SE_UEFISIGN= uefikeys
359 SE_YPLDAP= ypldap.conf
361 .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}
395 BINDIR= ${SHAREDIR}/examples
397 beforeinstall: copies etc-examples
398 META_TARGETS+= copies
403 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
404 rm -f ${DESTDIR}${BINDIR}/$i; \
409 ${_+_}(cd ${SRCTOP}/etc; ${MAKE} etc-examples)
414 SUBDIR.${MK_TESTS}+= tests
418 .include <bsd.prog.mk>