3 # Doing a make install builds /usr/share/examples
35 XFILES= BSD_daemon/FreeBSD.pfa \
37 BSD_daemon/beastie.eps \
38 BSD_daemon/beastie.fig \
39 BSD_daemon/eps.patch \
40 BSD_daemon/poster.sh \
41 FreeBSD_version/FreeBSD_version.c \
42 FreeBSD_version/Makefile \
43 FreeBSD_version/README \
47 bootforth/frames.4th \
50 bootforth/menuconf.4th \
51 bootforth/screen.4th \
60 cvsup/stable-supfile \
61 cvsup/standard-supfile \
64 diskless/README.BOOTP \
65 diskless/README.TEMPLATING \
68 drivers/make_device_driver.sh \
69 drivers/make_pseudo_driver.sh \
71 etc/bsd-style-copyright \
73 find_interface/Makefile \
74 find_interface/README \
75 find_interface/find_interface.c \
84 ipfw/change_rules.sh \
88 kld/cdev/module/Makefile \
89 kld/cdev/module/cdev.c \
90 kld/cdev/module/cdev.h \
91 kld/cdev/module/cdevmod.c \
92 kld/cdev/test/Makefile \
93 kld/cdev/test/testcdev.c \
94 kld/dyn_sysctl/Makefile \
95 kld/dyn_sysctl/README \
96 kld/dyn_sysctl/dyn_sysctl.c \
97 kld/firmware/Makefile \
99 kld/firmware/fwconsumer/Makefile \
100 kld/firmware/fwconsumer/fw_consumer.c \
101 kld/firmware/fwimage/Makefile \
102 kld/firmware/fwimage/firmware.img \
105 kld/khelp/h_example.c \
106 kld/syscall/Makefile \
107 kld/syscall/module/Makefile \
108 kld/syscall/module/syscall.c \
109 kld/syscall/test/Makefile \
110 kld/syscall/test/call.c \
113 mdoc/POSIX-copyright \
119 netgraph/ether.bridge \
120 netgraph/frame_relay \
123 netgraph/udp.tunnel \
124 nwclient/dot.nwfsrc \
125 nwclient/nwfs.sh.sample \
135 ppp/ppp.conf.sample \
136 ppp/ppp.conf.span-isp \
137 ppp/ppp.conf.span-isp.working \
138 ppp/ppp.linkdown.sample \
139 ppp/ppp.linkdown.span-isp \
140 ppp/ppp.linkdown.span-isp.working \
141 ppp/ppp.linkup.sample \
142 ppp/ppp.linkup.span-isp \
143 ppp/ppp.linkup.span-isp.working \
144 ppp/ppp.secret.sample \
145 ppp/ppp.secret.span-isp \
146 ppp/ppp.secret.span-isp.working \
148 printing/diablo-if-net \
155 printing/if-simpleX \
157 printing/make-ps-header \
166 ses/getencstat/Makefile \
167 ses/getencstat/getencstat.0 \
170 ses/setencstat/Makefile \
171 ses/setencstat/setencstat.0 \
172 ses/setobjstat/Makefile \
173 ses/setobjstat/setobjstat.0 \
176 ses/srcs/getencstat.c \
178 ses/srcs/getobjmap.c \
179 ses/srcs/getobjstat.c \
182 ses/srcs/setencstat.c \
183 ses/srcs/setobjstat.c \
184 scsi_target/Makefile \
185 scsi_target/scsi_target.c \
186 scsi_target/scsi_target.h \
187 scsi_target/scsi_target.8 \
188 scsi_target/scsi_cmds.c \
190 sunrpc/dir/Makefile \
192 sunrpc/dir/dir_proc.c \
194 sunrpc/msg/Makefile \
196 sunrpc/msg/msg_proc.c \
197 sunrpc/msg/printmsg.c \
198 sunrpc/msg/rprintmsg.c \
199 sunrpc/sort/Makefile \
200 sunrpc/sort/rsort.c \
202 sunrpc/sort/sort_proc.c
204 BINDIR= ${SHAREDIR}/examples
208 # Define SHARED to indicate whether you want symbolic links to the system
209 # source (``symlinks''), or a separate copy (``copies''); (latter useful
210 # in environments where it's not possible to keep /sys publicly readable)
213 beforeinstall: ${SHARED} etc-examples
214 .ORDER: ${SHARED} etc-examples
218 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
219 rm -f ${DESTDIR}${BINDIR}/$i; \
222 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
223 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
224 .for file in ${XFILES}
225 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
226 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
231 rm -rf ${DESTDIR}${BINDIR}/$i
232 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
236 .if ${SHARED} != "symlinks"
237 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
240 .if ${SHARED} != "symlinks"
242 .if ${MK_IPFILTER} != "no"
250 .include <bsd.subdir.mk>