comparison spandsp-0.0.6pre17/Makefile.am @ 4:26cd8f1ef0b1

import spandsp-0.0.6pre17
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 15:50:58 +0200
parents
children
comparison
equal deleted inserted replaced
3:c6c5a16ce2f2 4:26cd8f1ef0b1
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 ##
19 ## $Id: Makefile.am,v 1.49 2009/05/30 05:55:22 steveu Exp $
20
21 AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
22 AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
23
24 noinst_SCRIPTS = spandsp.spec
25
26 MAINTAINERCLEANFILES = Makefile.in
27
28 EXTRA_DIST = autogen.sh \
29 DueDiligence \
30 debian/changelog \
31 debian/compat \
32 debian/control \
33 debian/copyright \
34 debian/libspandsp6.install \
35 debian/libspandsp-dev.install \
36 debian/libspandsp-doc.install \
37 debian/rules \
38 debian/watch \
39 README.testdata \
40 spandsp.pc \
41 spandsp.spec \
42 spandsp/fax-tests.dtd \
43 spandsp/global-tones.xml \
44 spandsp/tones.dtd \
45 spandsp/tsb85.xml \
46 unpack_g722_data.sh \
47 unpack_g726_data.sh \
48 unpack_gsm0610_data.sh \
49 unpack_v56ter_data.sh \
50 wrapper.xsl
51
52 if COND_DOC
53 MAYBE_DOC=doc
54 endif
55 if COND_TESTDATA
56 MAYBE_TESTDATA=test-data
57 endif
58 if COND_TESTS
59 MAYBE_TESTDATA=test-data
60 MAYBE_TESTS=spandsp-sim tests
61 endif
62 SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTDATA) $(MAYBE_TESTS)
63
64 DIST_SUBDIRS = src doc test-data spandsp-sim tests
65
66 pkgconfigdir = $(libdir)/pkgconfig
67 pkgconfig_DATA = spandsp.pc
68
69 faq: faq.xml
70 cd faq ; xsltproc ../wrapper.xsl ../faq.xml
71
72 rpm: rpm-build
73
74 rpm-build:
75 $(MAKE) -$(MAKEFLAGS) bump.rpm.release
76 $(MAKE) -$(MAKEFLAGS) dist
77 rm -rf rpm/BUILD/*
78 rm -f rpm/RPMS/*/*
79 rm -f rpm/SOURCES/*
80 rm -f rpm/SPECS/*
81 rm -f rpm/SRPMS/*
82 rpmbuild -ta --sign @PACKAGE@-@VERSION@.tar.gz
83
84 bump.rpm.release: spandsp.spec
85 VERSION="x"; \
86 test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
87 NEXT_RELEASE=0; \
88 test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
89 RELEASE=`expr $$NEXT_RELEASE + 1`; \
90 echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
91 echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
92 sed 's/^Release: .*/Release: '$$RELEASE'/' \
93 <spandsp.spec >spandsp.spec.new; \
94 mv spandsp.spec.new spandsp.spec

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.