3 # Doing a make install builds /usr/share/examples
36 XFILES= BSD_daemon/FreeBSD.pfa \
38 BSD_daemon/beastie.eps \
39 BSD_daemon/beastie.fig \
40 BSD_daemon/eps.patch \
41 BSD_daemon/poster.sh \
42 FreeBSD_version/FreeBSD_version.c \
43 FreeBSD_version/Makefile \
44 FreeBSD_version/README \
48 bootforth/frames.4th \
51 bootforth/menuconf.4th \
52 bootforth/screen.4th \
57 cvsup/stable-supfile \
58 cvsup/standard-supfile \
60 diskless/README.BOOTP \
61 diskless/README.TEMPLATING \
64 drivers/make_device_driver.sh \
65 drivers/make_pseudo_driver.sh \
67 etc/bsd-style-copyright \
69 find_interface/Makefile \
70 find_interface/README \
71 find_interface/find_interface.c \
80 ipfw/change_rules.sh \
85 kld/cdev/module/Makefile \
86 kld/cdev/module/cdev.c \
87 kld/cdev/module/cdev.h \
88 kld/cdev/module/cdevmod.c \
89 kld/cdev/test/Makefile \
90 kld/cdev/test/testcdev.c \
91 kld/dyn_sysctl/Makefile \
92 kld/dyn_sysctl/README \
93 kld/dyn_sysctl/dyn_sysctl.c \
94 kld/firmware/Makefile \
96 kld/firmware/fwconsumer/Makefile \
97 kld/firmware/fwconsumer/fw_consumer.c \
98 kld/firmware/fwimage/Makefile \
99 kld/firmware/fwimage/firmware.img.uu \
102 kld/khelp/h_example.c \
103 kld/syscall/Makefile \
104 kld/syscall/module/Makefile \
105 kld/syscall/module/syscall.c \
106 kld/syscall/test/Makefile \
107 kld/syscall/test/call.c \
110 mdoc/POSIX-copyright \
116 netgraph/ether.bridge \
117 netgraph/frame_relay \
120 netgraph/udp.tunnel \
121 netgraph/virtual.chain \
122 netgraph/virtual.lan \
123 nwclient/dot.nwfsrc \
124 nwclient/nwfs.sh.sample \
134 ppp/ppp.conf.sample \
135 ppp/ppp.conf.span-isp \
136 ppp/ppp.conf.span-isp.working \
137 ppp/ppp.linkdown.sample \
138 ppp/ppp.linkdown.span-isp \
139 ppp/ppp.linkdown.span-isp.working \
140 ppp/ppp.linkup.sample \
141 ppp/ppp.linkup.span-isp \
142 ppp/ppp.linkup.span-isp.working \
143 ppp/ppp.secret.sample \
144 ppp/ppp.secret.span-isp \
145 ppp/ppp.secret.span-isp.working \
147 printing/diablo-if-net \
154 printing/if-simpleX \
156 printing/make-ps-header \
165 ses/getencstat/Makefile \
166 ses/getencstat/getencstat.0 \
169 ses/setencstat/Makefile \
170 ses/setencstat/setencstat.0 \
171 ses/setobjstat/Makefile \
172 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>