/share/examples/Makefile

https://bitbucket.org/freebsd/freebsd-head/ · Makefile · 254 lines · 236 code · 12 blank · 6 comment · 5 complexity · e85d4af9e20a74ec18ad9061c8c2ab21 MD5 · raw file

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