]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/examples/Makefile
Update libarchive to 3.0.4
[FreeBSD/FreeBSD.git] / share / examples / Makefile
1 # $FreeBSD$
2 #
3 # Doing a make install builds /usr/share/examples
4
5 .include <bsd.own.mk>
6
7 LDIRS=  BSD_daemon \
8         FreeBSD_version \
9         IPv6 \
10         bootforth \
11         csh \
12         cvsup \
13         diskless \
14         drivers \
15         etc \
16         find_interface \
17         hast \
18         ibcs2 \
19         indent \
20         ipfw \
21         jails \
22         kld \
23         libusb20 \
24         libvgl \
25         mdoc \
26         netgraph \
27         nwclient \
28         perfmon \
29         portal \
30         ppi \
31         ppp \
32         printing \
33         ses \
34         scsi_target \
35         sunrpc
36
37 XFILES= BSD_daemon/FreeBSD.pfa \
38         BSD_daemon/README \
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 \
46         IPv6/USAGE \
47         bootforth/README \
48         bootforth/boot.4th \
49         bootforth/frames.4th \
50         bootforth/loader.rc \
51         bootforth/menu.4th \
52         bootforth/menuconf.4th \
53         bootforth/screen.4th \
54         csh/dot.cshrc \
55         cvsup/README \
56         cvsup/cvs-supfile \
57         cvsup/doc-supfile \
58         cvsup/gnats-supfile \
59         cvsup/ports-supfile \
60         cvsup/refuse \
61         cvsup/refuse.README \
62         cvsup/stable-supfile \
63         cvsup/standard-supfile \
64         cvsup/www-supfile \
65         diskless/ME \
66         diskless/README.BOOTP \
67         diskless/README.TEMPLATING \
68         diskless/clone_root \
69         drivers/README \
70         drivers/make_device_driver.sh \
71         drivers/make_pseudo_driver.sh \
72         etc/README.examples \
73         etc/bsd-style-copyright \
74         etc/make.conf \
75         find_interface/Makefile \
76         find_interface/README \
77         find_interface/find_interface.c \
78         hast/ucarp.sh \
79         hast/ucarp_down.sh \
80         hast/ucarp_up.sh \
81         hast/vip-down.sh \
82         hast/vip-up.sh \
83         ibcs2/README \
84         ibcs2/hello.uu \
85         indent/indent.pro \
86         ipfw/change_rules.sh \
87         jails/README \
88         kld/Makefile \
89         kld/cdev/Makefile \
90         kld/cdev/README \
91         kld/cdev/module/Makefile \
92         kld/cdev/module/cdev.c \
93         kld/cdev/module/cdev.h \
94         kld/cdev/module/cdevmod.c \
95         kld/cdev/test/Makefile \
96         kld/cdev/test/testcdev.c \
97         kld/dyn_sysctl/Makefile \
98         kld/dyn_sysctl/README \
99         kld/dyn_sysctl/dyn_sysctl.c \
100         kld/firmware/Makefile \
101         kld/firmware/README \
102         kld/firmware/fwconsumer/Makefile \
103         kld/firmware/fwconsumer/fw_consumer.c \
104         kld/firmware/fwimage/Makefile \
105         kld/firmware/fwimage/firmware.img.uu \
106         kld/khelp/Makefile \
107         kld/khelp/README \
108         kld/khelp/h_example.c \
109         kld/syscall/Makefile \
110         kld/syscall/module/Makefile \
111         kld/syscall/module/syscall.c \
112         kld/syscall/test/Makefile \
113         kld/syscall/test/call.c \
114         libusb20/Makefile \
115         libusb20/README \
116         libusb20/aux.c \
117         libusb20/aux.h \
118         libusb20/bulk.c \
119         libusb20/control.c \
120         libvgl/Makefile \
121         libvgl/demo.c \
122         mdoc/POSIX-copyright \
123         mdoc/deshallify.sh \
124         mdoc/example.1 \
125         mdoc/example.3 \
126         mdoc/example.4 \
127         mdoc/example.9 \
128         netgraph/ether.bridge \
129         netgraph/frame_relay \
130         netgraph/ngctl \
131         netgraph/raw \
132         netgraph/udp.tunnel \
133         netgraph/virtual.chain \
134         netgraph/virtual.lan \
135         nwclient/dot.nwfsrc \
136         nwclient/nwfs.sh.sample \
137         perfmon/Makefile \
138         perfmon/README \
139         perfmon/perfmon.c \
140         portal/README \
141         portal/portal.conf \
142         ppi/Makefile \
143         ppi/ppilcd.c \
144         ppp/chap-auth \
145         ppp/login-auth \
146         ppp/ppp.conf.sample \
147         ppp/ppp.conf.span-isp \
148         ppp/ppp.conf.span-isp.working \
149         ppp/ppp.linkdown.sample \
150         ppp/ppp.linkdown.span-isp \
151         ppp/ppp.linkdown.span-isp.working \
152         ppp/ppp.linkup.sample \
153         ppp/ppp.linkup.span-isp \
154         ppp/ppp.linkup.span-isp.working \
155         ppp/ppp.secret.sample \
156         ppp/ppp.secret.span-isp \
157         ppp/ppp.secret.span-isp.working \
158         printing/README \
159         printing/diablo-if-net \
160         printing/hpdf \
161         printing/hpif \
162         printing/hpof \
163         printing/hprf \
164         printing/hpvf \
165         printing/if-simple \
166         printing/if-simpleX \
167         printing/ifhp \
168         printing/make-ps-header \
169         printing/netprint \
170         printing/psdf \
171         printing/psdfX \
172         printing/psif \
173         printing/pstf \
174         printing/pstfX \
175         ses/Makefile \
176         ses/Makefile.inc \
177         ses/getencstat/Makefile \
178         ses/getencstat/getencstat.0 \
179         ses/sesd/Makefile \
180         ses/sesd/sesd.0 \
181         ses/setencstat/Makefile \
182         ses/setencstat/setencstat.0 \
183         ses/setobjstat/Makefile \
184         ses/setobjstat/setobjstat.0 \
185         ses/srcs/chpmon.c \
186         ses/srcs/eltsub.c \
187         ses/srcs/eltsub.h \
188         ses/srcs/getencstat.c \
189         ses/srcs/getnobj.c \
190         ses/srcs/getobjmap.c \
191         ses/srcs/getobjstat.c \
192         ses/srcs/inienc.c \
193         ses/srcs/sesd.c \
194         ses/srcs/setencstat.c \
195         ses/srcs/setobjstat.c \
196         scsi_target/Makefile \
197         scsi_target/scsi_target.c \
198         scsi_target/scsi_target.h \
199         scsi_target/scsi_target.8 \
200         scsi_target/scsi_cmds.c \
201         sunrpc/Makefile \
202         sunrpc/dir/Makefile \
203         sunrpc/dir/dir.x \
204         sunrpc/dir/dir_proc.c \
205         sunrpc/dir/rls.c \
206         sunrpc/msg/Makefile \
207         sunrpc/msg/msg.x \
208         sunrpc/msg/msg_proc.c \
209         sunrpc/msg/printmsg.c \
210         sunrpc/msg/rprintmsg.c \
211         sunrpc/sort/Makefile \
212         sunrpc/sort/rsort.c \
213         sunrpc/sort/sort.x \
214         sunrpc/sort/sort_proc.c
215
216 BINDIR= ${SHAREDIR}/examples
217
218 NO_OBJ=
219
220 # Define SHARED to indicate whether you want symbolic links to the system
221 # source (``symlinks''), or a separate copy (``copies''); (latter useful
222 # in environments where it's not possible to keep /sys publicly readable)
223 SHARED?=        copies
224
225 beforeinstall: ${SHARED} etc-examples
226 .ORDER: ${SHARED} etc-examples
227
228 copies:
229 .for i in ${LDIRS}
230         if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
231                 rm -f ${DESTDIR}${BINDIR}/$i; \
232         fi
233 .endfor
234         mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
235             -f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
236 .for file in ${XFILES}
237         ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
238                 ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
239 .endfor
240
241 symlinks:
242 .for i in ${LDIRS}
243         rm -rf ${DESTDIR}${BINDIR}/$i
244         ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
245 .endfor
246
247 etc-examples:
248 .if ${SHARED} != "symlinks"
249         (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
250 .endif
251
252 .if ${SHARED} != "symlinks"
253 SUBDIR= smbfs
254 .if ${MK_IPFILTER} != "no"
255 SUBDIR+=ipfilter
256 .endif
257 .if ${MK_PF} != "no"
258 SUBDIR+=pf
259 .endif
260 .endif
261
262 .include <bsd.subdir.mk>