3 # Doing a make install builds /usr/share/examples
32 XFILES= BSD_daemon/FreeBSD.pfa \
34 BSD_daemon/beastie.eps \
35 BSD_daemon/beastie.fig \
36 BSD_daemon/eps.patch \
37 BSD_daemon/poster.sh \
38 FreeBSD_version/FreeBSD_version.c \
39 FreeBSD_version/Makefile \
40 FreeBSD_version/README \
44 bootforth/frames.4th \
47 bootforth/menuconf.4th \
48 bootforth/screen.4th \
56 cvsup/stable-supfile \
57 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 \
74 ipfw/change_rules.sh \
78 kld/cdev/module/Makefile \
79 kld/cdev/module/cdev.c \
80 kld/cdev/module/cdev.h \
81 kld/cdev/module/cdevmod.c \
82 kld/cdev/test/Makefile \
83 kld/cdev/test/testcdev.c \
84 kld/dyn_sysctl/Makefile \
85 kld/dyn_sysctl/README \
86 kld/dyn_sysctl/dyn_sysctl.c \
87 kld/firmware/Makefile \
89 kld/firmware/fwconsumer/Makefile \
90 kld/firmware/fwconsumer/fw_consumer.c \
91 kld/firmware/fwimage/Makefile \
92 kld/firmware/fwimage/firmware.img \
93 kld/syscall/Makefile \
94 kld/syscall/module/Makefile \
95 kld/syscall/module/syscall.c \
96 kld/syscall/test/Makefile \
97 kld/syscall/test/call.c \
100 mdoc/POSIX-copyright \
106 netgraph/ether.bridge \
107 netgraph/frame_relay \
110 netgraph/udp.tunnel \
111 nwclient/dot.nwfsrc \
112 nwclient/nwfs.sh.sample \
122 ppp/ppp.conf.sample \
123 ppp/ppp.conf.span-isp \
124 ppp/ppp.conf.span-isp.working \
125 ppp/ppp.linkdown.sample \
126 ppp/ppp.linkdown.span-isp \
127 ppp/ppp.linkdown.span-isp.working \
128 ppp/ppp.linkup.sample \
129 ppp/ppp.linkup.span-isp \
130 ppp/ppp.linkup.span-isp.working \
131 ppp/ppp.secret.sample \
132 ppp/ppp.secret.span-isp \
133 ppp/ppp.secret.span-isp.working \
135 printing/diablo-if-net \
142 printing/if-simpleX \
144 printing/make-ps-header \
153 ses/getencstat/Makefile \
154 ses/getencstat/getencstat.0 \
157 ses/setencstat/Makefile \
158 ses/setencstat/setencstat.0 \
159 ses/setobjstat/Makefile \
160 ses/setobjstat/setobjstat.0 \
163 ses/srcs/getencstat.c \
165 ses/srcs/getobjmap.c \
166 ses/srcs/getobjstat.c \
169 ses/srcs/setencstat.c \
170 ses/srcs/setobjstat.c \
171 scsi_target/Makefile \
172 scsi_target/scsi_target.c \
173 scsi_target/scsi_target.h \
174 scsi_target/scsi_target.8 \
175 scsi_target/scsi_cmds.c \
177 sunrpc/dir/Makefile \
179 sunrpc/dir/dir_proc.c \
181 sunrpc/msg/Makefile \
183 sunrpc/msg/msg_proc.c \
184 sunrpc/msg/printmsg.c \
185 sunrpc/msg/rprintmsg.c \
186 sunrpc/sort/Makefile \
187 sunrpc/sort/rsort.c \
189 sunrpc/sort/sort_proc.c
191 BINDIR= ${SHAREDIR}/examples
195 # Define SHARED to indicate whether you want symbolic links to the system
196 # source (``symlinks''), or a separate copy (``copies''); (latter useful
197 # in environments where it's not possible to keep /sys publicly readable)
200 beforeinstall: ${SHARED} etc-examples
201 .ORDER: ${SHARED} etc-examples
205 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
206 rm -f ${DESTDIR}${BINDIR}/$i; \
209 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
210 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
211 .for file in ${XFILES}
212 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
213 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
218 rm -rf ${DESTDIR}${BINDIR}/$i
219 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
223 .if ${SHARED} != "symlinks"
224 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
227 .if ${SHARED} != "symlinks"
229 .if ${MK_IPFILTER} != "no"
237 .include <bsd.subdir.mk>