Makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # vim:ft=automake
  2. #
  3. # Gearman server and library
  4. # Copyright (C) 2011-2012 DataDifferential LLC, http://datadifferential.com/
  5. # Copyright (C) 2008 Brian Aker, Eric Day
  6. # All rights reserved.
  7. #
  8. # Use and distribution licensed under the BSD license. See
  9. # the COPYING file in this directory for full text.
  10. ACLOCAL_AMFLAGS= -I m4
  11. bin_PROGRAMS=
  12. sbin_PROGRAMS=
  13. check_PROGRAMS=
  14. noinst_PROGRAMS=
  15. lib_LTLIBRARIES=
  16. man_MANS=
  17. noinst_LTLIBRARIES=
  18. check_LTLIBRARIES=
  19. nobase_include_HEADERS=
  20. noinst_HEADERS=
  21. DISTCLEANFILES=
  22. MAINTAINERCLEANFILES=
  23. EXTRA_DIST=
  24. CLEANFILES=
  25. BUILT_SOURCES=
  26. TESTS=
  27. XFAIL_TESTS=
  28. dist_man_MANS=
  29. if IS_VCS_CHECKOUT
  30. SUBDIRS= docs
  31. endif
  32. #includes additional rules from aminclude.am
  33. @INC_AMINCLUDE@
  34. DISTCLEANFILES+= aminclude.am
  35. # Should always be first
  36. include libtest/include.am
  37. include libhostile/include.am
  38. include libhashkit-1.0/include.am
  39. include docs/include.am
  40. include man/include.am
  41. include libgearmancore/include.am
  42. include libhashkit/include.am
  43. include benchmark/include.am
  44. include bin/include.am
  45. include examples/include.am
  46. include gearmand/include.am
  47. include libboost/include.am
  48. include libgearman-server/include.am
  49. include libgearman/include.am
  50. include libgearman-1.0/include.am
  51. include util/include.am
  52. include tests/include.am
  53. include support/include.am
  54. include m4/include.am
  55. include rpm/include.mk
  56. @GENERATE_CHANGELOG_RULES@
  57. CHANGELOG_GIT_FLAGS = --date=short --pretty=tformat:"%+D - %ad %s" --no-merges
  58. dist-hook: dist-ChangeLog
  59. TESTS += $(bin_PROGRAMS)
  60. TESTS += $(check_PROGRAMS)
  61. XFAIL_TESTS += $(bin_PROGRAMS)
  62. EXTRA_DIST+= CONTRIBUTING.md
  63. EXTRA_DIST+= README.md
  64. EXTRA_DIST+= scripts/README.solaris
  65. test: check
  66. BUILT_SOURCES+= configmake.h
  67. CLEANFILES+= configmake.h configmake.h-t
  68. configmake.h: Makefile
  69. @rm -f $@-t $@
  70. @{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  71. echo '#define SYSCONFDIR "$(sysconfdir)"'; \
  72. echo '#define GEARMAND_CONFIG "$(sysconfdir)/gearmand.conf"'; \
  73. echo '#define GEARMAND_CA_CERTIFICATE "$(sysconfdir)/ssl/certs/gearmand-ca.pem"'; \
  74. echo '#define GEARMAND_SERVER_PEM "$(sysconfdir)/ssl/certs/gearmand.pem"'; \
  75. echo '#define GEARMAND_SERVER_KEY "$(sysconfdir)/ssl/certs/gearmand.key"'; \
  76. echo '#define GEARMAN_CLIENT_PEM "$(sysconfdir)/ssl/certs/gearman.pem"'; \
  77. echo '#define GEARMAN_CLIENT_KEY "$(sysconfdir)/ssl/certs/gearman.key"'; \
  78. echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
  79. echo '#define GEARMAND_PID "$(localstatedir)/gearmand.pid"'; \
  80. } | sed '/""/d' > $@-t
  81. @if diff $@-t $@ >/dev/null 2>&1 ; then \
  82. rm @-t ; \
  83. else \
  84. mv $@-t $@ ; \
  85. fi
  86. clean-local: clean-libtest-check clean-rpm
  87. maintainer-clean-local:
  88. find . -type f -name '*~' -exec rm -f '{}' \;
  89. -$(RM) $(dist_man_MANS)
  90. -rm Makefile.in
  91. -rm aclocal.m4
  92. -rm build-aux/config.guess
  93. -rm build-aux/config.sub
  94. -rm build-aux/depcomp
  95. -rm build-aux/install-sh
  96. -rm build-aux/ltmain.sh
  97. -rm build-aux/missing
  98. -rm build-aux/test-driver
  99. -rm gear_config.in
  100. -rm config.log
  101. -rm config.status
  102. -rm configure
  103. -rm m4/libtool.m4
  104. -rm m4/ltoptions.m4
  105. -rm m4/ltsugar.m4
  106. -rm m4/ltversion.m4
  107. -rm m4/lt~obsolete.m4
  108. -rmdir build-aux
  109. -rm -rf ${top_builddir}/html
  110. -rm -f $(DIST_ARCHIVES)
  111. merge-clean:
  112. @find ./ | $(GREP) \.gcda | xargs rm -f
  113. @find ./ | $(GREP) \.gcno | xargs rm -f
  114. @find ./ | $(GREP) \.gz | xargs rm -f
  115. @find ./ | $(GREP) \.moved | xargs rm -r -f
  116. @find ./ | $(GREP) \\.orig | xargs rm -f
  117. @find ./ | $(GREP) \.rej | xargs rm -f
  118. @find ./ | $(GREP) \.THIS | xargs rm -f
  119. @find ./ | $(GREP) \.OTHER | xargs rm -f
  120. @find ./ | $(GREP) \.BASE | xargs rm -f
  121. @find ./ | $(GREP) \~$$ | xargs rm -f
  122. @echo "Files that need to be either removed or checked in:"
  123. @git clean -n