2
0

Makefile.in 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. ################################################################
  2. # Process this file with top-level configure script to produce Makefile
  3. #
  4. # Copyright 2000 Clark Cooper
  5. #
  6. # This file is part of EXPAT.
  7. #
  8. # EXPAT is free software; you can redistribute it and/or modify it
  9. # under the terms of the License (based on the MIT/X license) contained
  10. # in the file COPYING that comes with this distribution.
  11. #
  12. # EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  13. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  15. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  16. # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  17. # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  18. # SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
  19. #
  20. # ---
  21. # I started using automake, but
  22. # 1) it seemed like overkill
  23. # 2) I don't want all the GNU policies
  24. # 3) I wanted more explicit control over what gets built
  25. #
  26. # So I'm doing my Makefile.in files manually. But a fair part is based
  27. # on what I learned from perusing the Makefile.in's generated by automake,
  28. # and the automake authors still get my kudos.
  29. #
  30. SHELL = @SHELL@
  31. srcdir = @srcdir@
  32. top_srcdir = @top_srcdir@
  33. VPATH = @srcdir@
  34. prefix = @prefix@
  35. exec_prefix = @exec_prefix@
  36. bindir = @bindir@
  37. sbindir = @sbindir@
  38. libexecdir = @libexecdir@
  39. datadir = @datadir@
  40. sysconfdir = @sysconfdir@
  41. sharedstatedir = @sharedstatedir@
  42. localstatedir = @localstatedir@
  43. libdir = @libdir@
  44. infodir = @infodir@
  45. mandir = @mandir@
  46. includedir = @includedir@
  47. oldincludedir = /usr/include
  48. top_builddir = .
  49. AUTOCONF = autoconf
  50. INSTALL = @INSTALL@
  51. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  52. INSTALL_DATA = @INSTALL_DATA@
  53. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  54. NORMAL_INSTALL = :
  55. PRE_INSTALL = :
  56. POST_INSTALL = :
  57. NORMAL_UNINSTALL = :
  58. PRE_UNINSTALL = :
  59. POST_UNINSTALL = :
  60. host_alias = @host_alias@
  61. host_triplet = @host@
  62. CC = @CC@
  63. LIBTOOL = @LIBTOOL@
  64. LN_S = @LN_S@
  65. PACKAGE = @PACKAGE@
  66. RANLIB = @RANLIB@
  67. VERSION = @VERSION@
  68. SUBDIRS = lib
  69. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  70. CONFIG_HEADERS = config.h
  71. DISTDIR = $(PACKAGE)-$(VERSION)
  72. DISTRIBUTION = $(DISTDIR).tar.gz
  73. all: build-subdirs
  74. .PHONY: all build-subdirs clean distclean extraclean maintainer-clean dist install \
  75. uninstall distdir
  76. Makefile: Makefile.in config.status
  77. CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) config.status
  78. config.status: configure
  79. @if test -f $@; then \
  80. $(SHELL) config.status --recheck ; \
  81. else \
  82. $(SHELL) configure ; \
  83. fi
  84. configure: configure.ac
  85. $(AUTOCONF)
  86. config.h: config.h.in config.status
  87. CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADERS) \
  88. $(SHELL) ./config.status
  89. build-subdirs:
  90. @list='$(SUBDIRS)'; \
  91. for dir in $$list; do \
  92. cd $$dir; $(MAKE); cd ..; \
  93. done
  94. clean:
  95. @list='$(SUBDIRS)'; for dir in $$list; do \
  96. cd $$dir; $(MAKE) clean; cd ..; \
  97. done
  98. rm -f core *~
  99. distclean:
  100. @list='$(SUBDIRS)'; for dir in $$list; do \
  101. cd $$dir; $(MAKE) distclean; cd ..; \
  102. done
  103. rm -f config.h config.status config.log libtool examples/Makefile xmlwf/Makefile Makefile
  104. extraclean: distclean
  105. rm -f configure aclocal.m4
  106. maintainer-clean: distclean
  107. rm -f $(DISTRIBUTION)
  108. rm -rf $(DISTDIR)
  109. distdir: MANIFEST
  110. test -d $(DISTDIR) && rm -rf $(DISTDIR); \
  111. mkdir $(DISTDIR); \
  112. flist=`sed -e "s/[ ]:.*$$//" MANIFEST`; for file in $$flist; do \
  113. cp -P $$file $(DISTDIR); \
  114. done
  115. $(DISTRIBUTION): distdir
  116. tar cfz $(DISTRIBUTION) $(DISTDIR)
  117. dist: $(DISTRIBUTION)
  118. install:
  119. @list='$(SUBDIRS)'; for dir in $$list; do \
  120. cd $$dir; $(MAKE) install; cd ..; \
  121. done
  122. uninstall:
  123. @list='$(SUBDIRS)'; for dir in $$list; do \
  124. cd $$dir; $(MAKE) uninstall; cd ..; \
  125. done
  126. depend:
  127. echo SOMEONE SHOULD MAKE THIS DO SOMETHING!!!