Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # Gearman server and library
  2. # Copyright (C) 2008 Brian Aker, Eric Day
  3. # All rights reserved.
  4. #
  5. # Use and distribution licensed under the BSD license. See
  6. # the COPYING file in this directory for full text.
  7. ACLOCAL_AMFLAGS= -I m4 --install
  8. bin_PROGRAMS =
  9. sbin_PROGRAMS =
  10. check_PROGRAMS =
  11. noinst_PROGRAMS =
  12. lib_LTLIBRARIES =
  13. noinst_LTLIBRARIES =
  14. nobase_include_HEADERS =
  15. noinst_HEADERS =
  16. man1_MANS =
  17. man3_MANS =
  18. man8_MANS =
  19. DISTCLEANFILES =
  20. EXTRA_DIST =
  21. CLEANFILES =
  22. BUILT_SOURCES =
  23. TESTS =
  24. .PHONY =
  25. CLEANFILES+= ${BUILT_SOURCES}
  26. %.hpp.gch: %.hpp
  27. $(CXXCOMPILE) -c $<
  28. # Should always be first
  29. include libtest/include.am
  30. include libhostile/include.am
  31. include benchmark/include.am
  32. include bin/include.am
  33. include examples/include.am
  34. include gearmand/include.am
  35. include libgearman-server/include.am
  36. include libgearman/include.am
  37. include libgearman-1.0/include.am
  38. include util/include.am
  39. include tests/include.am
  40. include support/include.am
  41. include docs/include.am
  42. docs: html man
  43. TESTS += $(check_PROGRAMS)
  44. EXTRA_DIST+= HACKING
  45. EXTRA_DIST+= ${man1_MANS}
  46. EXTRA_DIST+= ${man3_MANS}
  47. EXTRA_DIST+= ${man8_MANS}
  48. EXTRA_DIST+= scripts/README.solaris
  49. test: check
  50. BUILT_SOURCES+= configmake.h
  51. noinst_HEADERS+= configmake.h
  52. configmake.h: ${top_srcdir}/Makefile.in
  53. @echo "Making $@"
  54. @rm -f $@-t $@
  55. @{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  56. echo '#define PREFIX "$(prefix)"'; \
  57. echo '#define SYSCONFDIR "$(sysconfdir)"'; \
  58. echo '#define GEARMAND_CONFIG "$(sysconfdir)/gearmand.conf"'; \
  59. echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
  60. echo '#define GEARMAND_PID "$(localstatedir)/gearmand.pid"'; \
  61. } | sed '/""/d' > $@-t
  62. @if diff $@-t $@ >/dev/null 2>&1 ; then \
  63. rm @-t ; \
  64. else \
  65. mv $@-t $@ ; \
  66. fi
  67. clean-local:
  68. -rm -rf docs/_build docs/doctrees
  69. rpm-build: support/gearmand.spec
  70. @rm -f ~/rpmbuild/RPMS/x86_64/gearmand-$(VERSION)*.rpm
  71. @rm -f ~/rpmbuild/SRPMS/gearmand-$(VERSION)*.rpm
  72. @cp gearmand-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
  73. @cp support/gearmand.init ~/rpmbuild/SOURCES/
  74. @rpmbuild -ba support/gearmand.spec
  75. @cp ~/rpmbuild/RPMS/x86_64/gearmand-$(VERSION)*.rpm .
  76. @cp ~/rpmbuild/RPMS/x86_64/gearmand-devel-$(VERSION)*.rpm .
  77. @cp ~/rpmbuild/RPMS/x86_64/gearmand-debuginfo-$(VERSION)*.rpm .
  78. @cp ~/rpmbuild/RPMS/x86_64/gearmand-server-$(VERSION)*.rpm .
  79. @cp ~/rpmbuild/SRPMS/gearmand-$(VERSION)*.rpm .
  80. rpm-sign: rpm-build
  81. @rpm --addsign gearmand-$(VERSION)*.rpm gearmand-devel-$(VERSION)*.rpm gearmand-debuginfo-$(VERSION)*.rpm gearmand-server-$(VERSION)*.rpm
  82. @rpm --checksig gearmand-$(VERSION)*.rpm gearmand-devel-$(VERSION)*.rpm gearmand-debuginfo-$(VERSION)*.rpm gearmand-server-$(VERSION)*.rpm
  83. rpm: support/gearmand.spec man distcheck rpm-build
  84. release: rpm rpm-sign
  85. @rpm --addsign gearmand-$(VERSION)*.rpm gearmand-devel-$(VERSION)*.rpm gearmand-debuginfo-$(VERSION)*.rpm gearmand-server-$(VERSION)*.rpm
  86. @rpm --checksig gearmand-$(VERSION)*.rpm gearmand-devel-$(VERSION)*.rpm gearmand-debuginfo-$(VERSION)*.rpm gearmand-server-$(VERSION)*.rpm
  87. merge-clean:
  88. @find ./ | $(GREP) \.moved | xargs rm -r -f
  89. @find ./ | $(GREP) \.orig | xargs rm -f
  90. @find ./ | $(GREP) \.rej | xargs rm -f
  91. @find ./ | $(GREP) \~$$ | xargs rm -f
  92. @echo "The follow files need to be removed or checked in:"
  93. @bzr unknowns