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 \
48 bootforth/frames.4th \
51 bootforth/menuconf.4th \
52 bootforth/screen.4th \
55 diskless/README.BOOTP \
56 diskless/README.TEMPLATING \
59 drivers/make_device_driver.sh \
60 drivers/make_pseudo_driver.sh \
62 etc/bsd-style-copyright \
64 find_interface/Makefile \
65 find_interface/README \
66 find_interface/find_interface.c \
75 ipfw/change_rules.sh \
80 kld/cdev/module/Makefile \
81 kld/cdev/module/cdev.c \
82 kld/cdev/module/cdev.h \
83 kld/cdev/module/cdevmod.c \
84 kld/cdev/test/Makefile \
85 kld/cdev/test/testcdev.c \
86 kld/dyn_sysctl/Makefile \
87 kld/dyn_sysctl/README \
88 kld/dyn_sysctl/dyn_sysctl.c \
89 kld/firmware/Makefile \
91 kld/firmware/fwconsumer/Makefile \
92 kld/firmware/fwconsumer/fw_consumer.c \
93 kld/firmware/fwimage/Makefile \
94 kld/firmware/fwimage/firmware.img.uu \
97 kld/khelp/h_example.c \
98 kld/syscall/Makefile \
99 kld/syscall/module/Makefile \
100 kld/syscall/module/syscall.c \
101 kld/syscall/test/Makefile \
102 kld/syscall/test/call.c \
111 mdoc/POSIX-copyright \
117 netgraph/ether.bridge \
118 netgraph/frame_relay \
121 netgraph/udp.tunnel \
122 netgraph/virtual.chain \
123 netgraph/virtual.lan \
131 ppp/ppp.conf.sample \
132 ppp/ppp.conf.span-isp \
133 ppp/ppp.conf.span-isp.working \
134 ppp/ppp.linkdown.sample \
135 ppp/ppp.linkdown.span-isp \
136 ppp/ppp.linkdown.span-isp.working \
137 ppp/ppp.linkup.sample \
138 ppp/ppp.linkup.span-isp \
139 ppp/ppp.linkup.span-isp.working \
140 ppp/ppp.secret.sample \
141 ppp/ppp.secret.span-isp \
142 ppp/ppp.secret.span-isp.working \
144 printing/diablo-if-net \
151 printing/if-simpleX \
153 printing/make-ps-header \
162 ses/getencstat/Makefile \
163 ses/getencstat/getencstat.0 \
166 ses/setencstat/Makefile \
167 ses/setencstat/setencstat.0 \
168 ses/setobjstat/Makefile \
169 ses/setobjstat/setobjstat.0 \
173 ses/srcs/getencstat.c \
175 ses/srcs/getobjmap.c \
176 ses/srcs/getobjstat.c \
179 ses/srcs/setencstat.c \
180 ses/srcs/setobjstat.c \
181 scsi_target/Makefile \
182 scsi_target/scsi_target.c \
183 scsi_target/scsi_target.h \
184 scsi_target/scsi_target.8 \
185 scsi_target/scsi_cmds.c \
187 sunrpc/dir/Makefile \
189 sunrpc/dir/dir_proc.c \
191 sunrpc/msg/Makefile \
193 sunrpc/msg/msg_proc.c \
194 sunrpc/msg/printmsg.c \
195 sunrpc/msg/rprintmsg.c \
196 sunrpc/sort/Makefile \
197 sunrpc/sort/rsort.c \
199 sunrpc/sort/sort_proc.c
201 BINDIR= ${SHAREDIR}/examples
205 # Define SHARED to indicate whether you want symbolic links to the system
206 # source (``symlinks''), or a separate copy (``copies''); (latter useful
207 # in environments where it's not possible to keep /sys publicly readable)
210 beforeinstall: ${SHARED} etc-examples
211 .ORDER: ${SHARED} etc-examples
215 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
216 rm -f ${DESTDIR}${BINDIR}/$i; \
219 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
220 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
221 .for file in ${XFILES}
222 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
223 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
228 rm -rf ${DESTDIR}${BINDIR}/$i
229 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
233 .if ${SHARED} != "symlinks"
234 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
237 .if ${SHARED} != "symlinks"
239 .if ${MK_IPFILTER} != "no"
247 .if ${MK_TESTS} != "no"
251 .include <bsd.subdir.mk>