home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Networking / bind-8.1.1 / nextstep / include / Makefile next >
Encoding:
Makefile  |  1997-10-25  |  3.5 KB  |  119 lines

  1. # ++Copyright++
  2. # -
  3. # Copyright (c)
  4. #    The Regents of the University of California.  All rights
  5. reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. # 1. Redistributions of source code must retain the above copyright
  11. #    notice, this list of conditions and the following disclaimer.
  12. # 2. Redistributions in binary form must reproduce the above copyright
  13. #    notice, this list of conditions and the following disclaimer
  14. in the
  15. #    documentation and/or other materials provided with the
  16. distribution.
  17. # 3. All advertising materials mentioning features or use of this
  18. software
  19. #    must display the following acknowledgement:
  20. #     This product includes software developed by the University of
  21. #     California, Berkeley and its contributors.
  22. # 4. Neither the name of the University nor the names of its
  23. contributors
  24. #    may be used to endorse or promote products derived from this
  25. software
  26. #    without specific prior written permission.
  27. #
  28. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS
  29. IS'' AND
  30. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  31. TO, THE
  32. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  33. PARTICULAR PURPOSE
  34. # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
  35. BE LIABLE
  36. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  37. CONSEQUENTIAL
  38. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  39. SUBSTITUTE GOODS
  40. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  41. INTERRUPTION)
  42. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  43. CONTRACT, STRICT
  44. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  45. IN ANY WAY
  46. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  47. POSSIBILITY OF
  48. # SUCH DAMAGE.
  49. # -
  50. # Portions Copyright (c) 1993 by Digital Equipment Corporation.
  51. #
  52. # Permission to use, copy, modify, and distribute this software
  53. for any
  54. # purpose with or without fee is hereby granted, provided that the above
  55. # copyright notice and this permission notice appear in all
  56. copies, and that
  57. # the name of Digital Equipment Corporation not be used in
  58. advertising or
  59. # publicity pertaining to distribution of the document or software
  60. without
  61. # specific, written prior permission.
  62. #
  63. # THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP.
  64. DISCLAIMS ALL
  65. # WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
  66. WARRANTIES
  67. # OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL
  68. EQUIPMENT
  69. # CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
  70. CONSEQUENTIAL
  71. # DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  72. DATA OR
  73. # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  74. TORTIOUS
  75. # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  76. PERFORMANCE OF THIS
  77. # SOFTWARE.
  78. # -
  79. # --Copyright--
  80.  
  81. SUBDIRS = sys
  82. HFILES =
  83.  
  84. DESTDIR=
  85. DESTINC= /usr/local/include
  86. INSTALL= install
  87.  
  88. MARGS= DESTDIR="${DESTDIR}" DESTINC="${DESTINC}" INSTALL="${INSTALL}"
  89.  
  90. all depend clean distclean install::
  91.     @for x in ${SUBDIRS}; do \
  92.         (cd $$x; pwd; ${MAKE} ${MARGS} $@); \
  93.     done
  94.  
  95. distclean:: clean
  96.  
  97. clean::
  98.     rm -f *~ *.BAK *.CKP *.orig
  99.  
  100. links: FRC
  101.     @set -e; ln -s SRC/*.h .
  102.     @set -e; for x in ${SUBDIRS}; do \
  103.         ( mkdir $$x; cd $$x; pwd; ln -s ../SRC/$$x SRC; \
  104.         cp SRC/Makefile Makefile; chmod +w Makefile; \
  105.         ${MAKE} ${MARGS} links ); \
  106.     done
  107.  
  108. install:: ${DESTDIR}${DESTINC}
  109.     -for x in "" ${HFILES}; do \
  110.         if [ -n "$$x" ]; then \
  111.         ${INSTALL} -c -m 444 $$x ${DESTDIR}${DESTINC}/$$x; \
  112.         fi; \
  113.     done
  114.  
  115. ${DESTDIR}${DESTINC}:
  116.     mkdir ${DESTDIR}${DESTINC}
  117.  
  118. FRC:
  119.