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 \
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 \
78 ipfw/change_rules.sh \
82 kld/cdev/module/Makefile \
83 kld/cdev/module/cdev.c \
84 kld/cdev/module/cdev.h \
85 kld/cdev/module/cdevmod.c \
86 kld/cdev/test/Makefile \
87 kld/cdev/test/testcdev.c \
88 kld/dyn_sysctl/Makefile \
89 kld/dyn_sysctl/README \
90 kld/dyn_sysctl/dyn_sysctl.c \
91 kld/syscall/Makefile \
92 kld/syscall/module/Makefile \
93 kld/syscall/module/syscall.c \
94 kld/syscall/test/Makefile \
95 kld/syscall/test/call.c \
98 mdoc/POSIX-copyright \
104 netgraph/ether.bridge \
105 netgraph/frame_relay \
108 netgraph/udp.tunnel \
109 nwclient/dot.nwfsrc \
110 nwclient/nwfs.sh.sample \
120 ppp/ppp.conf.sample \
121 ppp/ppp.conf.span-isp \
122 ppp/ppp.conf.span-isp.working \
123 ppp/ppp.linkdown.sample \
124 ppp/ppp.linkdown.span-isp \
125 ppp/ppp.linkdown.span-isp.working \
126 ppp/ppp.linkup.sample \
127 ppp/ppp.linkup.span-isp \
128 ppp/ppp.linkup.span-isp.working \
129 ppp/ppp.secret.sample \
130 ppp/ppp.secret.span-isp \
131 ppp/ppp.secret.span-isp.working \
132 pppd/auth-down.sample \
133 pppd/auth-up.sample \
134 pppd/chap-secrets.sample \
135 pppd/chat.sh.sample \
136 pppd/ip-down.sample \
138 pppd/options.sample \
139 pppd/pap-secrets.sample \
140 pppd/ppp.deny.sample \
141 pppd/ppp.shells.sample \
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 \
184 slattach/unit-command.sh \
185 sliplogin/slip.hosts \
186 sliplogin/slip.login \
187 sliplogin/slip.logout \
188 sliplogin/slip.slparms \
189 startslip/sldown.sh \
193 sunrpc/dir/Makefile \
195 sunrpc/dir/dir_proc.c \
197 sunrpc/msg/Makefile \
199 sunrpc/msg/msg_proc.c \
200 sunrpc/msg/printmsg.c \
201 sunrpc/msg/rprintmsg.c \
202 sunrpc/sort/Makefile \
203 sunrpc/sort/rsort.c \
205 sunrpc/sort/sort_proc.c
207 BINDIR= ${SHAREDIR}/examples
211 # Define SHARED to indicate whether you want symbolic links to the system
212 # source (``symlinks''), or a separate copy (``copies''); (latter useful
213 # in environments where it's not possible to keep /sys publicly readable)
216 beforeinstall: ${SHARED} etc-examples
217 .ORDER: ${SHARED} etc-examples
221 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
222 rm -f ${DESTDIR}${BINDIR}/$i; \
225 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
226 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
227 .for file in ${XFILES}
228 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
229 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
234 rm -rf ${DESTDIR}${BINDIR}/$i
235 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
239 .if ${SHARED} != "symlinks"
240 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
243 .if ${SHARED} != "symlinks"
245 .if ${MK_IPFILTER} != "no"
253 .include <bsd.subdir.mk>