Makefile.am 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## iLBC - a library for the iLBC codec
  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.1.1.1 2008/02/15 12:15:55 steveu Exp $
  20. AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
  21. noinst_SCRIPTS = ilbc.spec
  22. MAINTAINERCLEANFILES = Makefile.in
  23. EXTRA_DIST = ilbc.spec \
  24. wrapper.xsl \
  25. gips_iLBClicense.pdf \
  26. libilbc.vcproj \
  27. doc/libilbc-doxygen \
  28. src/ilbc/version.h.in \
  29. src/libilbc.dsp \
  30. src/libilbc.sln \
  31. src/msvc/gettimeofday.c \
  32. src/msvc/inttypes.h \
  33. src/msvc/tgmath.h \
  34. src/msvc/unistd.h \
  35. src/msvc/sys/time.h \
  36. src/msvc/ilbc.def \
  37. src/msvc/msvcproj.head \
  38. src/msvc/msvcproj.foot \
  39. src/msvc/vc8proj.head \
  40. src/msvc/vc8proj.foot \
  41. debian/changelog \
  42. debian/compat \
  43. debian/control \
  44. debian/copyright \
  45. debian/libilbc.install \
  46. debian/libilbc-dev.install \
  47. debian/libilbc-doc.install \
  48. debian/rules \
  49. debian/watch
  50. if COND_DOC
  51. MAYBE_DOC=doc
  52. endif
  53. if COND_TESTS
  54. MAYBE_TESTS=tests
  55. endif
  56. SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS)
  57. DIST_SUBDIRS = src doc tests localtests
  58. faq: faq.xml
  59. cd faq ; xsltproc ../wrapper.xsl ../faq.xml
  60. rpm: rpm-build
  61. rpm-build:
  62. $(MAKE) -$(MAKEFLAGS) bump.rpm.release
  63. $(MAKE) -$(MAKEFLAGS) dist
  64. rm -rf rpm/BUILD/*
  65. rm -f rpm/RPMS/*/*
  66. rm -f rpm/SOURCES/*
  67. rm -f rpm/SPECS/*
  68. rm -f rpm/SRPMS/*
  69. rpm -ta --sign @PACKAGE@-@VERSION@.tar.gz
  70. bump.rpm.release: ilbc.spec
  71. VERSION="x"; \
  72. test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
  73. NEXT_RELEASE=0; \
  74. test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
  75. RELEASE=`expr $$NEXT_RELEASE + 1`; \
  76. echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
  77. echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
  78. sed 's/^Release: .*/Release: '$$RELEASE'/' \
  79. <ilbc.spec >ilbc.spec.new; \
  80. mv ilbc.spec.new ilbc.spec