Makefile.am 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ##
  2. ## g722_1 - a library for the ITU G.722.1 and Annex C codecs
  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 Lesser GNU General Public License version 2.1, as
  8. ## 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 General Public License for more details.
  14. ##
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
  19. AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
  20. noinst_SCRIPTS = g722_1.spec
  21. MAINTAINERCLEANFILES = Makefile.in
  22. EXTRA_DIST = autogen.sh \
  23. g722_1.pc \
  24. g722_1.spec \
  25. unpack_g722_1_data.sh \
  26. wrapper.xsl \
  27. doc/libg722_1-doxygen \
  28. debian/changelog \
  29. debian/compat \
  30. debian/control \
  31. debian/copyright \
  32. debian/libg722_11.install \
  33. debian/libg722_1-dev.install \
  34. debian/libg722_1-doc.install \
  35. debian/rules \
  36. debian/watch
  37. if COND_DOC
  38. MAYBE_DOC=doc
  39. endif
  40. if COND_TESTS
  41. MAYBE_TESTS=tests
  42. endif
  43. SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS)
  44. DIST_SUBDIRS = src doc tests test-data
  45. pkgconfigdir = $(libdir)/pkgconfig
  46. pkgconfig_DATA = g722_1.pc
  47. faq: faq.xml
  48. cd faq ; xsltproc ../wrapper.xsl ../faq.xml
  49. rpm: rpm-build
  50. rpm-build:
  51. $(MAKE) -$(MAKEFLAGS) bump.rpm.release
  52. $(MAKE) -$(MAKEFLAGS) dist
  53. rm -rf rpm/BUILD/*
  54. rm -f rpm/RPMS/*/*
  55. rm -f rpm/SOURCES/*
  56. rm -f rpm/SPECS/*
  57. rm -f rpm/SRPMS/*
  58. rpm -ta --sign @PACKAGE@-@VERSION@.tar.gz
  59. bump.rpm.release: g722_1.spec
  60. VERSION="x"; \
  61. test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
  62. NEXT_RELEASE=0; \
  63. test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
  64. RELEASE=`expr $$NEXT_RELEASE + 1`; \
  65. echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
  66. echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
  67. sed 's/^Release: .*/Release: '$$RELEASE'/' \
  68. <g722_1.spec >g722_1.spec.new; \
  69. mv g722_1.spec.new g722_1.spec