Makefile.am 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## SpanDSP - a series of DSP components for telephony
  3. ##
  4. ## Makefile.am - Process this file with automake to produce Makefile.in
  5. ##
  6. ## This program is free software; you can redistribute it and/or modify
  7. ## it under the terms of the GNU Lesser General Public License version 2.1,
  8. ## as published by the Free Software Foundation.
  9. ##
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU Lesser General Public License for more details.
  14. ##
  15. ## You should have received a copy of the GNU Lesser General Public
  16. ## License along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ACLOCAL_AMFLAGS = -I m4
  19. AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
  20. AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
  21. noinst_SCRIPTS = spandsp.spec
  22. MAINTAINERCLEANFILES = Makefile.in
  23. EXTRA_DIST = autogen.sh \
  24. DueDiligence \
  25. debian/changelog \
  26. debian/compat \
  27. debian/control \
  28. debian/copyright \
  29. debian/libspandsp6.install \
  30. debian/libspandsp-dev.install \
  31. debian/libspandsp-doc.install \
  32. debian/rules \
  33. debian/watch \
  34. README.testdata \
  35. spandsp.spec \
  36. spandsp/fax-tests.dtd \
  37. spandsp/fax-tests.xml \
  38. spandsp/global-tones.xml \
  39. spandsp/tones.dtd \
  40. spandsp/tsb85.xml \
  41. unpack_g722_data.sh \
  42. unpack_g726_data.sh \
  43. unpack_gsm0610_data.sh \
  44. unpack_v56ter_data.sh \
  45. wrapper.xsl \
  46. yum-prepare.sh
  47. if COND_DOC
  48. MAYBE_DOC=doc
  49. endif
  50. if COND_TESTS
  51. MAYBE_TESTS=spandsp-sim test-data tests
  52. endif
  53. SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS)
  54. DIST_SUBDIRS = src doc test-data spandsp-sim tests
  55. pkgconfigdir = $(libdir)/pkgconfig
  56. pkgconfig_DATA = spandsp.pc
  57. faq: faq.xml
  58. cd faq ; xsltproc ../wrapper.xsl ../faq.xml
  59. rpm: rpm-build
  60. rpm-build:
  61. $(MAKE) -$(MAKEFLAGS) bump.rpm.release
  62. $(MAKE) -$(MAKEFLAGS) dist
  63. rm -rf rpm/BUILD/*
  64. rm -f rpm/RPMS/*/*
  65. rm -f rpm/SOURCES/*
  66. rm -f rpm/SPECS/*
  67. rm -f rpm/SRPMS/*
  68. rpmbuild -ta --sign @PACKAGE@-@VERSION@.tar.gz
  69. bump.rpm.release: spandsp.spec
  70. VERSION="x"; \
  71. test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
  72. NEXT_RELEASE=0; \
  73. test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
  74. RELEASE=`expr $$NEXT_RELEASE + 1`; \
  75. echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
  76. echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
  77. sed 's/^Release: .*/Release: '$$RELEASE'/' \
  78. <spandsp.spec >spandsp.spec.new; \
  79. mv spandsp.spec.new spandsp.spec