Deleted Added
sdiff udiff text old ( 139970 ) new ( 139989 )
full compact
1# $FreeBSD: head/share/examples/Makefile 139970 2005-01-10 09:04:13Z ru $
2#
3# Doing a make install builds /usr/share/examples
4
5LDIRS= BSD_daemon \
6 FreeBSD_version \
7 IPv6 \
8 atm \
9 bootforth \
10 cvsup \
11 diskless \
12 drivers \
13 etc \
14 find_interface \
15 ibcs2 \
16 ipfw \
17 isdn \
18 kld \
19 libvgl \
20 mdoc \
21 netgraph \
22 nwclient \
23 perfmon \
24 portal \
25 ppi \
26 ppp \
27 pppd \
28 printing \
29 ses \
30 scsi_target \
31 slattach \
32 sliplogin \
33 startslip \
34 sunrpc
35
36XFILES= BSD_daemon/FreeBSD.pfa \
37 BSD_daemon/README \
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 \
45 IPv6/USAGE \
46 atm/NOTES \
47 atm/README \
48 atm/Startup \
49 atm/atm-config.sh \
50 atm/atm-sockets.txt \
51 atm/cpcs-design.txt \
52 atm/fore-microcode.txt \
53 atm/sscf-design.txt \
54 atm/sscop-design.txt \
55 bootforth/README \
56 bootforth/boot.4th \
57 bootforth/frames.4th \
58 bootforth/loader.rc \
59 bootforth/menu.4th \
60 bootforth/menuconf.4th \
61 bootforth/screen.4th \
62 cvsup/README \
63 cvsup/cvs-supfile \
64 cvsup/doc-supfile \
65 cvsup/gnats-supfile \
66 cvsup/ports-supfile \
67 cvsup/refuse \
68 cvsup/refuse.README \
69 cvsup/stable-supfile \
70 cvsup/standard-supfile \
71 cvsup/www-supfile \
72 diskless/ME \
73 diskless/README.BOOTP \
74 diskless/README.TEMPLATING \
75 diskless/clone_root \
76 drivers/README \
77 drivers/make_device_driver.sh \
78 drivers/make_pseudo_driver.sh \
79 etc/README.examples \
80 etc/bsd-style-copyright \
81 etc/make.conf \
82 find_interface/Makefile \
83 find_interface/README \
84 find_interface/find_interface.c \
85 ibcs2/README \
86 ibcs2/hello.uu \
87 ipfw/change_rules.sh \
88 isdn/FAQ \
89 isdn/KERNEL \
90 isdn/Overview \
91 isdn/README \
92 isdn/ROADMAP \
93 isdn/ReleaseNotes \
94 isdn/Resources \
95 isdn/SupportedCards \
96 isdn/ThankYou \
97 isdn/contrib/README \
98 isdn/contrib/anleitung.ppp \
99 isdn/contrib/answer.c \
100 isdn/contrib/answer.sh \
101 isdn/contrib/convert.sh \
102 isdn/contrib/hplay.c \
103 isdn/contrib/i4b-ppp-newbie.txt \
104 isdn/contrib/isdnctl \
105 isdn/contrib/isdnd_acct \
106 isdn/contrib/isdnd_acct.pl \
107 isdn/contrib/isdntelmux.c \
108 isdn/contrib/mrtg-isp0.sh \
109 isdn/i4brunppp/Makefile \
110 isdn/i4brunppp/README \
111 isdn/i4brunppp/i4brunppp-isdnd.rc \
112 isdn/i4brunppp/i4brunppp.8 \
113 isdn/i4brunppp/i4brunppp.c \
114 isdn/v21/Makefile \
115 isdn/v21/README \
116 isdn/v21/v21modem.c \
117 kld/Makefile \
118 kld/cdev/Makefile \
119 kld/cdev/README \
120 kld/cdev/module/Makefile \
121 kld/cdev/module/cdev.c \
122 kld/cdev/module/cdev.h \
123 kld/cdev/module/cdevmod.c \
124 kld/cdev/test/Makefile \
125 kld/cdev/test/testcdev.c \
126 kld/dyn_sysctl/Makefile \
127 kld/dyn_sysctl/README \
128 kld/dyn_sysctl/dyn_sysctl.c \
129 kld/syscall/Makefile \
130 kld/syscall/module/Makefile \
131 kld/syscall/module/syscall.c \
132 kld/syscall/test/Makefile \
133 kld/syscall/test/call.c \
134 libvgl/Makefile \
135 libvgl/demo.c \
136 mdoc/example.1 \
137 mdoc/example.3 \
138 mdoc/example.4 \
139 netgraph/bluetooth/rc.bluetooth \
140 netgraph/ether.bridge \
141 netgraph/frame_relay \
142 netgraph/ngctl \
143 netgraph/raw \
144 netgraph/udp.tunnel \
145 nwclient/dot.nwfsrc \
146 nwclient/nwfs.sh.sample \
147 perfmon/Makefile \
148 perfmon/README \
149 perfmon/perfmon.c \
150 portal/README \
151 portal/portal.conf \
152 ppi/Makefile \
153 ppi/ppilcd.c \
154 ppp/chap-auth \
155 ppp/isdnd.rc \
156 ppp/login-auth \
157 ppp/ppp.conf.isdn \
158 ppp/ppp.conf.sample \
159 ppp/ppp.conf.span-isp \
160 ppp/ppp.conf.span-isp.working \
161 ppp/ppp.linkdown.sample \
162 ppp/ppp.linkdown.span-isp \
163 ppp/ppp.linkdown.span-isp.working \
164 ppp/ppp.linkup.sample \
165 ppp/ppp.linkup.span-isp \
166 ppp/ppp.linkup.span-isp.working \
167 ppp/ppp.secret.sample \
168 ppp/ppp.secret.span-isp \
169 ppp/ppp.secret.span-isp.working \
170 pppd/auth-down.sample \
171 pppd/auth-up.sample \
172 pppd/chap-secrets.sample \
173 pppd/chat.sh.sample \
174 pppd/ip-down.sample \
175 pppd/ip-up.sample \
176 pppd/options.sample \
177 pppd/pap-secrets.sample \
178 pppd/ppp.deny.sample \
179 pppd/ppp.shells.sample \
180 printing/README \
181 printing/diablo-if-net \
182 printing/hpdf \
183 printing/hpif \
184 printing/hpof \
185 printing/hprf \
186 printing/hpvf \
187 printing/if-simple \
188 printing/if-simpleX \
189 printing/ifhp \
190 printing/make-ps-header \
191 printing/netprint \
192 printing/psdf \
193 printing/psdfX \
194 printing/psif \
195 printing/pstf \
196 printing/pstfX \
197 ses/Makefile \
198 ses/Makefile.inc \
199 ses/getencstat/Makefile \
200 ses/getencstat/getencstat.0 \
201 ses/sesd/Makefile \
202 ses/sesd/sesd.0 \
203 ses/setencstat/Makefile \
204 ses/setencstat/setencstat.0 \
205 ses/setobjstat/Makefile \
206 ses/setobjstat/setobjstat.0 \
207 ses/srcs/chpmon.c \
208 ses/srcs/eltsub.c \
209 ses/srcs/getencstat.c \
210 ses/srcs/getnobj.c \
211 ses/srcs/getobjmap.c \
212 ses/srcs/getobjstat.c \
213 ses/srcs/inienc.c \
214 ses/srcs/sesd.c \
215 ses/srcs/setencstat.c \
216 ses/srcs/setobjstat.c \
217 scsi_target/Makefile \
218 scsi_target/scsi_target.c \
219 scsi_target/scsi_target.h \
220 scsi_target/scsi_target.8 \
221 scsi_target/scsi_cmds.c \
222 slattach/unit-command.sh \
223 sliplogin/slip.hosts \
224 sliplogin/slip.login \
225 sliplogin/slip.logout \
226 sliplogin/slip.slparms \
227 startslip/sldown.sh \
228 startslip/slip.sh \
229 startslip/slup.sh \
230 sunrpc/Makefile \
231 sunrpc/dir/Makefile \
232 sunrpc/dir/dir.x \
233 sunrpc/dir/dir_proc.c \
234 sunrpc/dir/rls.c \
235 sunrpc/msg/Makefile \
236 sunrpc/msg/msg.x \
237 sunrpc/msg/msg_proc.c \
238 sunrpc/msg/printmsg.c \
239 sunrpc/msg/rprintmsg.c \
240 sunrpc/sort/Makefile \
241 sunrpc/sort/rsort.c \
242 sunrpc/sort/sort.x \
243 sunrpc/sort/sort_proc.c
244
245BINDIR= ${SHAREDIR}/examples
246
247NO_OBJ=
248
249# Define SHARED to indicate whether you want symbolic links to the system
250# source (``symlinks''), or a separate copy (``copies''); (latter useful
251# in environments where it's not possible to keep /sys publicly readable)
252SHARED?= copies
253
254beforeinstall: ${SHARED} etc-examples
255.ORDER: ${SHARED} etc-examples
256
257copies:
258.for i in ${LDIRS}
259 if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
260 rm -f ${DESTDIR}${BINDIR}/$i; \
261 fi
262.endfor
263 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
264 -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
265.for file in ${XFILES}
266 ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
267 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
268.endfor
269
270symlinks:
271.for i in ${LDIRS}
272 rm -rf ${DESTDIR}${BINDIR}/$i
273 ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
274.endfor
275
276etc-examples:
277.if ${SHARED} != "symlinks"
278 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
279.endif
280
281.if ${SHARED} != "symlinks"
282SUBDIR= smbfs
283.if !defined(NO_IPFILTER)
284SUBDIR+=ipfilter
285.endif
286.if !defined(NO_PF)
287SUBDIR+=pf
288.endif
289.endif
290
291.include <bsd.subdir.mk>