3 # Doing a make install builds /usr/share/examples
34 XFILES= BSD_daemon/FreeBSD.pfa \
36 BSD_daemon/beastie.eps \
37 BSD_daemon/beastie.fig \
38 BSD_daemon/eps.patch \
39 BSD_daemon/poster.sh \
40 FreeBSD_version/FreeBSD_version.c \
41 FreeBSD_version/Makefile \
42 FreeBSD_version/README \
46 bootforth/frames.4th \
49 bootforth/menuconf.4th \
50 bootforth/screen.4th \
58 cvsup/stable-supfile \
59 cvsup/standard-supfile \
62 diskless/README.BOOTP \
63 diskless/README.TEMPLATING \
66 drivers/make_device_driver.sh \
67 drivers/make_pseudo_driver.sh \
69 etc/bsd-style-copyright \
71 find_interface/Makefile \
72 find_interface/README \
73 find_interface/find_interface.c \
82 ipfw/change_rules.sh \
86 kld/cdev/module/Makefile \
87 kld/cdev/module/cdev.c \
88 kld/cdev/module/cdev.h \
89 kld/cdev/module/cdevmod.c \
90 kld/cdev/test/Makefile \
91 kld/cdev/test/testcdev.c \
92 kld/dyn_sysctl/Makefile \
93 kld/dyn_sysctl/README \
94 kld/dyn_sysctl/dyn_sysctl.c \
95 kld/firmware/Makefile \
97 kld/firmware/fwconsumer/Makefile \
98 kld/firmware/fwconsumer/fw_consumer.c \
99 kld/firmware/fwimage/Makefile \
100 kld/firmware/fwimage/firmware.img \
103 kld/khelp/h_example.c \
104 kld/syscall/Makefile \
105 kld/syscall/module/Makefile \
106 kld/syscall/module/syscall.c \
107 kld/syscall/test/Makefile \
108 kld/syscall/test/call.c \
111 mdoc/POSIX-copyright \
117 netgraph/ether.bridge \
118 netgraph/frame_relay \
121 netgraph/udp.tunnel \
122 nwclient/dot.nwfsrc \
123 nwclient/nwfs.sh.sample \
133 ppp/ppp.conf.sample \
134 ppp/ppp.conf.span-isp \
135 ppp/ppp.conf.span-isp.working \
136 ppp/ppp.linkdown.sample \
137 ppp/ppp.linkdown.span-isp \
138 ppp/ppp.linkdown.span-isp.working \
139 ppp/ppp.linkup.sample \
140 ppp/ppp.linkup.span-isp \
141 ppp/ppp.linkup.span-isp.working \
142 ppp/ppp.secret.sample \
143 ppp/ppp.secret.span-isp \
144 ppp/ppp.secret.span-isp.working \
146 printing/diablo-if-net \
153 printing/if-simpleX \
155 printing/make-ps-header \
164 ses/getencstat/Makefile \
165 ses/getencstat/getencstat.0 \
168 ses/setencstat/Makefile \
169 ses/setencstat/setencstat.0 \
170 ses/setobjstat/Makefile \
171 ses/setobjstat/setobjstat.0 \
174 ses/srcs/getencstat.c \
176 ses/srcs/getobjmap.c \
177 ses/srcs/getobjstat.c \
180 ses/srcs/setencstat.c \
181 ses/srcs/setobjstat.c \
182 scsi_target/Makefile \
183 scsi_target/scsi_target.c \
184 scsi_target/scsi_target.h \
185 scsi_target/scsi_target.8 \
186 scsi_target/scsi_cmds.c \
188 sunrpc/dir/Makefile \
190 sunrpc/dir/dir_proc.c \
192 sunrpc/msg/Makefile \
194 sunrpc/msg/msg_proc.c \
195 sunrpc/msg/printmsg.c \
196 sunrpc/msg/rprintmsg.c \
197 sunrpc/sort/Makefile \
198 sunrpc/sort/rsort.c \
200 sunrpc/sort/sort_proc.c
202 BINDIR= ${SHAREDIR}/examples
206 # Define SHARED to indicate whether you want symbolic links to the system
207 # source (``symlinks''), or a separate copy (``copies''); (latter useful
208 # in environments where it's not possible to keep /sys publicly readable)
211 beforeinstall: ${SHARED} etc-examples
212 .ORDER: ${SHARED} etc-examples
216 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
217 rm -f ${DESTDIR}${BINDIR}/$i; \
220 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
221 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
222 .for file in ${XFILES}
223 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
224 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
229 rm -rf ${DESTDIR}${BINDIR}/$i
230 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
234 .if ${SHARED} != "symlinks"
235 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
238 .if ${SHARED} != "symlinks"
240 .if ${MK_IPFILTER} != "no"
248 .include <bsd.subdir.mk>