Makefile.am 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # Copyright (c) 2004 MontaVista Software, Inc.
  2. # Copyright (c) 2009, 2012 Red Hat, Inc.
  3. #
  4. # Authors: Steven Dake (sdake@redhat.com)
  5. # Fabio M. Di Nitto (fdinitto@redhat.com)
  6. #
  7. # All rights reserved.
  8. #
  9. # This software licensed under BSD license, the text of which follows:
  10. #
  11. # Redistribution and use in source and binary forms, with or without
  12. # modification, are permitted provided that the following conditions are met:
  13. #
  14. # - Redistributions of source code must retain the above copyright notice,
  15. # this list of conditions and the following disclaimer.
  16. # - Redistributions in binary form must reproduce the above copyright notice,
  17. # this list of conditions and the following disclaimer in the documentation
  18. # and/or other materials provided with the distribution.
  19. # - Neither the name of the MontaVista Software, Inc. nor the names of its
  20. # contributors may be used to endorse or promote products derived from this
  21. # software without specific prior written permission.
  22. #
  23. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  24. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  27. # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  28. # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  29. # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  30. # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  31. # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  32. # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  33. # THE POSSIBILITY OF SUCH DAMAGE.
  34. MAINTAINERCLEANFILES = Makefile.in
  35. xml_man = corosync-xmlproc.8 \
  36. corosync.xml.5
  37. INDEX_HTML = index.html
  38. autogen_man = cpg_context_get.3 \
  39. cpg_context_set.3 \
  40. cpg_dispatch.3 \
  41. cpg_fd_get.3 \
  42. cpg_finalize.3 \
  43. cpg_initialize.3 \
  44. cpg_join.3 \
  45. cpg_leave.3 \
  46. cpg_local_get.3 \
  47. cpg_mcast_joined.3 \
  48. cpg_model_initialize.3 \
  49. cpg_zcb_mcast_joined.3 \
  50. cpg_zcb_alloc.3 \
  51. cpg_zcb_free.3 \
  52. cpg_membership_get.3 \
  53. cpg_iteration_finalize.3 \
  54. cpg_iteration_initialize.3 \
  55. cpg_iteration_next.3 \
  56. quorum_initialize.3 \
  57. quorum_finalize.3 \
  58. quorum_fd_get.3 \
  59. quorum_dispatch.3 \
  60. quorum_context_get.3 \
  61. quorum_context_set.3 \
  62. quorum_getquorate.3 \
  63. quorum_trackstart.3 \
  64. quorum_trackstop.3 \
  65. votequorum_dispatch.3 \
  66. votequorum_fd_get.3 \
  67. votequorum_context_get.3 \
  68. votequorum_context_set.3 \
  69. votequorum_finalize.3 \
  70. votequorum_getinfo.3 \
  71. votequorum_initialize.3 \
  72. votequorum_setexpected.3 \
  73. votequorum_setvotes.3 \
  74. votequorum_trackstart.3 \
  75. votequorum_trackstop.3 \
  76. sam_data_getsize.3 \
  77. sam_data_restore.3 \
  78. sam_data_store.3 \
  79. sam_finalize.3 \
  80. sam_hc_callback_register.3 \
  81. sam_hc_send.3 \
  82. sam_initialize.3 \
  83. sam_mark_failed.3 \
  84. sam_register.3 \
  85. sam_start.3 \
  86. sam_stop.3 \
  87. sam_warn_signal_set.3 \
  88. cmap_context_get.3 \
  89. cmap_dec.3 \
  90. cmap_iter_init.3 \
  91. cmap_get.3 \
  92. cmap_inc.3 \
  93. cmap_set.3 \
  94. cmap_iter_next.3 \
  95. cmap_delete.3 \
  96. cmap_iter_finalize.3 \
  97. cmap_finalize.3 \
  98. cmap_dispatch.3 \
  99. cmap_initialize.3 \
  100. cmap_track_add.3 \
  101. cmap_context_set.3 \
  102. cmap_fd_get.3 \
  103. cmap_track_delete.3
  104. autogen_common = ipc_common.sh.errors
  105. EXTRA_DIST = $(INDEX_HTML) \
  106. $(xml_man) \
  107. $(autogen_man:%=%.in) \
  108. $(autogen_common)
  109. man_MANS = $(autogen_man)
  110. dist_man_MANS = corosync.conf.5 \
  111. votequorum.5 \
  112. corosync.8 \
  113. corosync-cmapctl.8 \
  114. corosync-blackbox.8 \
  115. corosync-keygen.8 \
  116. corosync-cfgtool.8 \
  117. corosync-cpgtool.8 \
  118. corosync-fplay.8 \
  119. corosync-notifyd.8 \
  120. corosync-quorumtool.8 \
  121. corosync_overview.8 \
  122. cpg_overview.8 \
  123. quorum_overview.8 \
  124. votequorum_overview.8 \
  125. sam_overview.8 \
  126. cmap_overview.8
  127. if INSTALL_XMLCONF
  128. dist_man_MANS += $(xml_man)
  129. endif
  130. HTML_DOCS = $(dist_man_MANS:%=%.html) $(man_MANS:%=%.html)
  131. # developer man page generation
  132. %.3: %.3.in $(autogen_common) $(top_srcdir)/build-aux/genman
  133. @echo Generating $@ man page && \
  134. rm -f $@-t $@ && \
  135. $(top_srcdir)/build-aux/genman \
  136. $(srcdir)/$@.in \
  137. $(builddir)/$@-t \
  138. $(srcdir)/$(autogen_common) && \
  139. mv $@-t $@
  140. clean-local:
  141. rm -rf $(HTML_DOCS) $(autogen_man)
  142. if BUILD_HTML_DOCS
  143. %.html: %
  144. $(GROFF) -mandoc -Thtml $^ > $@
  145. install-data-local:
  146. $(INSTALL) -d $(DESTDIR)/${docdir}/html
  147. $(INSTALL) -m644 ${srcdir}/$(INDEX_HTML) $(HTML_DOCS) $(DESTDIR)/${docdir}/html/
  148. uninstall-local:
  149. cd $(DESTDIR)/${docdir}/html && rm -f $(INDEX_HTML) $(HTML_DOCS)
  150. rmdir $(DESTDIR)/${docdir}/html 2> /dev/null || :
  151. all-local: $(HTML_DOCS)
  152. endif