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 \
101 kld/syscall/Makefile \
102 kld/syscall/module/Makefile \
103 kld/syscall/module/syscall.c \
104 kld/syscall/test/Makefile \
105 kld/syscall/test/call.c \
108 mdoc/POSIX-copyright \
114 netgraph/ether.bridge \
115 netgraph/frame_relay \
118 netgraph/udp.tunnel \
119 nwclient/dot.nwfsrc \
120 nwclient/nwfs.sh.sample \
130 ppp/ppp.conf.sample \
131 ppp/ppp.conf.span-isp \
132 ppp/ppp.conf.span-isp.working \
133 ppp/ppp.linkdown.sample \
134 ppp/ppp.linkdown.span-isp \
135 ppp/ppp.linkdown.span-isp.working \
136 ppp/ppp.linkup.sample \
137 ppp/ppp.linkup.span-isp \
138 ppp/ppp.linkup.span-isp.working \
139 ppp/ppp.secret.sample \
140 ppp/ppp.secret.span-isp \
141 ppp/ppp.secret.span-isp.working \
143 printing/diablo-if-net \
150 printing/if-simpleX \
152 printing/make-ps-header \
161 ses/getencstat/Makefile \
162 ses/getencstat/getencstat.0 \
165 ses/setencstat/Makefile \
166 ses/setencstat/setencstat.0 \
167 ses/setobjstat/Makefile \
168 ses/setobjstat/setobjstat.0 \
171 ses/srcs/getencstat.c \
173 ses/srcs/getobjmap.c \
174 ses/srcs/getobjstat.c \
177 ses/srcs/setencstat.c \
178 ses/srcs/setobjstat.c \
179 scsi_target/Makefile \
180 scsi_target/scsi_target.c \
181 scsi_target/scsi_target.h \
182 scsi_target/scsi_target.8 \
183 scsi_target/scsi_cmds.c \
185 sunrpc/dir/Makefile \
187 sunrpc/dir/dir_proc.c \
189 sunrpc/msg/Makefile \
191 sunrpc/msg/msg_proc.c \
192 sunrpc/msg/printmsg.c \
193 sunrpc/msg/rprintmsg.c \
194 sunrpc/sort/Makefile \
195 sunrpc/sort/rsort.c \
197 sunrpc/sort/sort_proc.c
199 BINDIR= ${SHAREDIR}/examples
203 # Define SHARED to indicate whether you want symbolic links to the system
204 # source (``symlinks''), or a separate copy (``copies''); (latter useful
205 # in environments where it's not possible to keep /sys publicly readable)
208 beforeinstall: ${SHARED} etc-examples
209 .ORDER: ${SHARED} etc-examples
213 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
214 rm -f ${DESTDIR}${BINDIR}/$i; \
217 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
218 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
219 .for file in ${XFILES}
220 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
221 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
226 rm -rf ${DESTDIR}${BINDIR}/$i
227 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
231 .if ${SHARED} != "symlinks"
232 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
235 .if ${SHARED} != "symlinks"
237 .if ${MK_IPFILTER} != "no"
245 .include <bsd.subdir.mk>