3 # Doing a make install builds /usr/share/examples
33 XFILES= BSD_daemon/FreeBSD.pfa \
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 \
45 bootforth/frames.4th \
48 bootforth/menuconf.4th \
49 bootforth/screen.4th \
52 diskless/README.BOOTP \
53 diskless/README.TEMPLATING \
56 drivers/make_device_driver.sh \
57 drivers/make_pseudo_driver.sh \
59 etc/bsd-style-copyright \
61 find_interface/Makefile \
62 find_interface/README \
63 find_interface/find_interface.c \
67 ipfw/change_rules.sh \
72 kld/cdev/module/Makefile \
73 kld/cdev/module/cdev.c \
74 kld/cdev/module/cdev.h \
75 kld/cdev/module/cdevmod.c \
76 kld/cdev/test/Makefile \
77 kld/cdev/test/testcdev.c \
78 kld/dyn_sysctl/Makefile \
79 kld/dyn_sysctl/README \
80 kld/dyn_sysctl/dyn_sysctl.c \
81 kld/firmware/Makefile \
83 kld/firmware/fwconsumer/Makefile \
84 kld/firmware/fwconsumer/fw_consumer.c \
85 kld/firmware/fwimage/Makefile \
86 kld/firmware/fwimage/firmware.img.uu \
89 kld/khelp/h_example.c \
90 kld/syscall/Makefile \
91 kld/syscall/module/Makefile \
92 kld/syscall/module/syscall.c \
93 kld/syscall/test/Makefile \
94 kld/syscall/test/call.c \
97 mdoc/POSIX-copyright \
103 netgraph/ether.bridge \
104 netgraph/frame_relay \
107 netgraph/udp.tunnel \
108 netgraph/virtual.chain \
109 netgraph/virtual.lan \
117 ppp/ppp.conf.sample \
118 ppp/ppp.conf.span-isp \
119 ppp/ppp.conf.span-isp.working \
120 ppp/ppp.linkdown.sample \
121 ppp/ppp.linkdown.span-isp \
122 ppp/ppp.linkdown.span-isp.working \
123 ppp/ppp.linkup.sample \
124 ppp/ppp.linkup.span-isp \
125 ppp/ppp.linkup.span-isp.working \
126 ppp/ppp.secret.sample \
127 ppp/ppp.secret.span-isp \
128 ppp/ppp.secret.span-isp.working \
130 printing/diablo-if-net \
137 printing/if-simpleX \
139 printing/make-ps-header \
148 ses/getencstat/Makefile \
149 ses/getencstat/getencstat.0 \
152 ses/setencstat/Makefile \
153 ses/setencstat/setencstat.0 \
154 ses/setobjstat/Makefile \
155 ses/setobjstat/setobjstat.0 \
159 ses/srcs/getencstat.c \
161 ses/srcs/getobjmap.c \
162 ses/srcs/getobjstat.c \
165 ses/srcs/setencstat.c \
166 ses/srcs/setobjstat.c \
167 scsi_target/Makefile \
168 scsi_target/scsi_target.c \
169 scsi_target/scsi_target.h \
170 scsi_target/scsi_target.8 \
171 scsi_target/scsi_cmds.c \
173 sunrpc/dir/Makefile \
175 sunrpc/dir/dir_proc.c \
177 sunrpc/msg/Makefile \
179 sunrpc/msg/msg_proc.c \
180 sunrpc/msg/printmsg.c \
181 sunrpc/msg/rprintmsg.c \
182 sunrpc/sort/Makefile \
183 sunrpc/sort/rsort.c \
185 sunrpc/sort/sort_proc.c \
188 BINDIR= ${SHAREDIR}/examples
192 .if ${MK_HAST} != "no"
194 XFILES+= hast/ucarp.sh \
201 .if ${MK_USB} != "no"
203 XFILES+= libusb20/Makefile \
211 .if ${MACHINE_CPUARCH} == "amd64"
212 .if ${MK_BHYVE} != "no"
214 XFILES+= bhyve/vmrun.sh
218 # Define SHARED to indicate whether you want symbolic links to the system
219 # source (``symlinks''), or a separate copy (``copies''); (latter useful
220 # in environments where it's not possible to keep /sys publicly readable)
223 beforeinstall: ${SHARED} etc-examples
224 .ORDER: ${SHARED} etc-examples
228 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
229 rm -f ${DESTDIR}${BINDIR}/$i; \
232 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
233 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
234 .for file in ${XFILES}
235 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
236 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
241 rm -rf ${DESTDIR}${BINDIR}/$i
242 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
246 .if ${SHARED} != "symlinks"
247 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
250 .if ${SHARED} != "symlinks"
252 .if ${MK_IPFILTER} != "no"
260 .if ${MK_TESTS} != "no"
264 .include <bsd.subdir.mk>