3 # Doing a make install builds /usr/share/examples
37 XFILES= BSD_daemon/FreeBSD.pfa \
39 BSD_daemon/beastie.eps \
40 BSD_daemon/beastie.fig \
41 BSD_daemon/eps.patch \
42 BSD_daemon/poster.sh \
43 FreeBSD_version/FreeBSD_version.c \
44 FreeBSD_version/Makefile \
45 FreeBSD_version/README \
49 bootforth/frames.4th \
52 bootforth/menuconf.4th \
53 bootforth/screen.4th \
61 cvsup/stable-supfile \
62 cvsup/standard-supfile \
65 diskless/README.BOOTP \
66 diskless/README.TEMPLATING \
69 drivers/make_device_driver.sh \
70 drivers/make_pseudo_driver.sh \
72 etc/bsd-style-copyright \
74 find_interface/Makefile \
75 find_interface/README \
76 find_interface/find_interface.c \
79 ipfw/change_rules.sh \
90 isdn/contrib/anleitung.ppp \
91 isdn/contrib/answer.c \
92 isdn/contrib/answer.sh \
93 isdn/contrib/convert.sh \
94 isdn/contrib/hplay.c \
95 isdn/contrib/i4b-ppp-newbie.txt \
96 isdn/contrib/isdnctl \
97 isdn/contrib/isdnd_acct \
98 isdn/contrib/isdnd_acct.pl \
99 isdn/contrib/isdntelmux.c \
100 isdn/contrib/mrtg-isp0.sh \
101 isdn/i4brunppp/Makefile \
102 isdn/i4brunppp/README \
103 isdn/i4brunppp/i4brunppp-isdnd.rc \
104 isdn/i4brunppp/i4brunppp.8 \
105 isdn/i4brunppp/i4brunppp.c \
108 isdn/v21/v21modem.c \
112 kld/cdev/module/Makefile \
113 kld/cdev/module/cdev.c \
114 kld/cdev/module/cdev.h \
115 kld/cdev/module/cdevmod.c \
116 kld/cdev/test/Makefile \
117 kld/cdev/test/testcdev.c \
118 kld/dyn_sysctl/Makefile \
119 kld/dyn_sysctl/README \
120 kld/dyn_sysctl/dyn_sysctl.c \
121 kld/syscall/Makefile \
122 kld/syscall/module/Makefile \
123 kld/syscall/module/syscall.c \
124 kld/syscall/test/Makefile \
125 kld/syscall/test/call.c \
128 mdoc/POSIX-copyright \
134 netgraph/ether.bridge \
135 netgraph/frame_relay \
138 netgraph/udp.tunnel \
139 nwclient/dot.nwfsrc \
140 nwclient/nwfs.sh.sample \
152 ppp/ppp.conf.sample \
153 ppp/ppp.conf.span-isp \
154 ppp/ppp.conf.span-isp.working \
155 ppp/ppp.linkdown.sample \
156 ppp/ppp.linkdown.span-isp \
157 ppp/ppp.linkdown.span-isp.working \
158 ppp/ppp.linkup.sample \
159 ppp/ppp.linkup.span-isp \
160 ppp/ppp.linkup.span-isp.working \
161 ppp/ppp.secret.sample \
162 ppp/ppp.secret.span-isp \
163 ppp/ppp.secret.span-isp.working \
164 pppd/auth-down.sample \
165 pppd/auth-up.sample \
166 pppd/chap-secrets.sample \
167 pppd/chat.sh.sample \
168 pppd/ip-down.sample \
170 pppd/options.sample \
171 pppd/pap-secrets.sample \
172 pppd/ppp.deny.sample \
173 pppd/ppp.shells.sample \
175 printing/diablo-if-net \
182 printing/if-simpleX \
184 printing/make-ps-header \
193 ses/getencstat/Makefile \
194 ses/getencstat/getencstat.0 \
197 ses/setencstat/Makefile \
198 ses/setencstat/setencstat.0 \
199 ses/setobjstat/Makefile \
200 ses/setobjstat/setobjstat.0 \
203 ses/srcs/getencstat.c \
205 ses/srcs/getobjmap.c \
206 ses/srcs/getobjstat.c \
209 ses/srcs/setencstat.c \
210 ses/srcs/setobjstat.c \
211 scsi_target/Makefile \
212 scsi_target/scsi_target.c \
213 scsi_target/scsi_target.h \
214 scsi_target/scsi_target.8 \
215 scsi_target/scsi_cmds.c \
216 slattach/unit-command.sh \
217 sliplogin/slip.hosts \
218 sliplogin/slip.login \
219 sliplogin/slip.logout \
220 sliplogin/slip.slparms \
221 startslip/sldown.sh \
225 sunrpc/dir/Makefile \
227 sunrpc/dir/dir_proc.c \
229 sunrpc/msg/Makefile \
231 sunrpc/msg/msg_proc.c \
232 sunrpc/msg/printmsg.c \
233 sunrpc/msg/rprintmsg.c \
234 sunrpc/sort/Makefile \
235 sunrpc/sort/rsort.c \
237 sunrpc/sort/sort_proc.c
239 BINDIR= ${SHAREDIR}/examples
243 # Define SHARED to indicate whether you want symbolic links to the system
244 # source (``symlinks''), or a separate copy (``copies''); (latter useful
245 # in environments where it's not possible to keep /sys publicly readable)
248 beforeinstall: ${SHARED} etc-examples
249 .ORDER: ${SHARED} etc-examples
253 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
254 rm -f ${DESTDIR}${BINDIR}/$i; \
257 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
258 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
259 .for file in ${XFILES}
260 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
261 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
266 rm -rf ${DESTDIR}${BINDIR}/$i
267 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
271 .if ${SHARED} != "symlinks"
272 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
275 .if ${SHARED} != "symlinks"
277 .if ${MK_IPFILTER} != "no"
285 .include <bsd.subdir.mk>