3 # Doing a make install builds /usr/share/examples
8 FILESDIR= ${SHAREDIR}/examples
45 .if ${MACHINE_CPUARCH} == "amd64"
46 .if ${MK_BHYVE} != "no"
50 PACKAGE_bhyve/vmrun.sh= bhyve
54 SE_DIRS+= FreeBSD_version
86 make_device_driver.sh \
95 SE_DIRS+= find_interface
102 SE_INDENT= indent.pro
104 .if ${MK_IPFILTER} != "no"
109 SE_IPFW= change_rules.sh
129 SE_DIRS+= kld/cdev/module
130 SE_KLD_CDEV_MODULE= \
136 SE_DIRS+= kld/cdev/test
141 SE_DIRS+= kld/dyn_sysctl
147 SE_DIRS+= kld/firmware
152 SE_DIRS+= kld/firmware/fwconsumer
153 SE_KLD_FIRMWARE_FWCONSUMER= \
157 SE_DIRS+= kld/firmware/fwimage
158 SE_KLD_FIRMWARE_FWIMAGE= \
168 SE_DIRS+= kld/syscall
169 SE_KLD_SYSCALL= Makefile
171 SE_DIRS+= kld/syscall/module
172 SE_KLD_SYSCALL_MODULE= \
176 SE_DIRS+= kld/syscall/test
177 SE_KLD_SYSCALL_TEST= \
237 ppp.conf.span-isp.working \
238 ppp.linkdown.sample \
239 ppp.linkdown.span-isp \
240 ppp.linkdown.span-isp.working \
242 ppp.linkup.span-isp \
243 ppp.linkup.span-isp.working \
245 ppp.secret.span-isp \
246 ppp.secret.span-isp.working
272 SE_DIRS+= ses/getencstat
282 SE_DIRS+= ses/setencstat
287 SE_DIRS+= ses/setobjstat
306 SE_DIRS+= scsi_target
332 SE_DIRS+= sunrpc/sort
339 .if ${MK_EFI} != "no"
342 SE_UEFISIGN= uefikeys
346 SE_YPLDAP= ypldap.conf
348 .if ${MK_HAST} != "no"
358 .if ${MK_USB} != "no"
371 # Setup the FILES_GROUPS for all DIRS variables above.
372 # The variables are prefixed by 'SE_' to prevent variable collision in
373 # other parts of the system
375 .for f in ${SE_${d:tu:C/\//_/g}}
376 SER_${d:tu:C/\//_/g}+= ${d}/${f}
378 FILESGROUPS+= SER_${d:tu:C/\//_/g}
379 SER_${d:tu:C/\//_/g}DIR+= ${SHAREDIR}/examples/${d}
382 BINDIR= ${SHAREDIR}/examples
384 beforeinstall: copies
385 META_TARGETS+= copies
389 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
390 rm -f ${DESTDIR}${BINDIR}/$i; \
397 SUBDIR.${MK_TESTS}+= tests
401 .include <bsd.prog.mk>