Makefile.am 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ##
  2. ## broadvoice - a library for the BroadVoice 16 and 32 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. ##
  19. ## $Id: Makefile.am,v 1.2 2009/11/21 17:19:22 steveu Exp $
  20. AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
  21. AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
  22. noinst_SCRIPTS = broadvoice.spec
  23. MAINTAINERCLEANFILES = Makefile.in
  24. EXTRA_DIST = autogen.sh \
  25. broadvoice.pc \
  26. broadvoice.spec \
  27. wrapper.xsl \
  28. doc/broadvoice-doxygen \
  29. debian/changelog \
  30. debian/compat \
  31. debian/control \
  32. debian/copyright \
  33. debian/libbroadvoice1.install \
  34. debian/libbroadvoice-dev.install \
  35. debian/libbroadvoice-doc.install \
  36. debian/rules \
  37. debian/watch
  38. if COND_DOC
  39. MAYBE_DOC=doc
  40. endif
  41. if COND_TESTS
  42. MAYBE_TESTS=tests
  43. endif
  44. SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS)
  45. DIST_SUBDIRS = src doc tests test-data
  46. pkgconfigdir = $(libdir)/pkgconfig
  47. pkgconfig_DATA = broadvoice.pc
  48. faq: faq.xml
  49. cd faq ; xsltproc ../wrapper.xsl ../faq.xml
  50. rpm: rpm-build
  51. rpm-build:
  52. $(MAKE) -$(MAKEFLAGS) bump.rpm.release
  53. $(MAKE) -$(MAKEFLAGS) dist
  54. rm -rf rpm/BUILD/*
  55. rm -f rpm/RPMS/*/*
  56. rm -f rpm/SOURCES/*
  57. rm -f rpm/SPECS/*
  58. rm -f rpm/SRPMS/*
  59. rpm -ta --sign @PACKAGE@-@VERSION@.tar.gz
  60. bump.rpm.release: broadvoice.spec
  61. VERSION="x"; \
  62. test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
  63. NEXT_RELEASE=0; \
  64. test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
  65. RELEASE=`expr $$NEXT_RELEASE + 1`; \
  66. echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
  67. echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
  68. sed 's/^Release: .*/Release: '$$RELEASE'/' \
  69. <broadvoice.spec >broadvoice.spec.new; \
  70. mv broadvoice.spec.new broadvoice.spec