view 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
line wrap: on
line source

##
## SpanDSP - a series of DSP components for telephony
##
## Makefile.am - Process this file with automake to produce Makefile.in
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License version 2.1,
## as published by the Free Software Foundation.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## $Id: Makefile.am,v 1.49 2009/05/30 05:55:22 steveu Exp $

AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)

noinst_SCRIPTS = spandsp.spec

MAINTAINERCLEANFILES = Makefile.in

EXTRA_DIST = autogen.sh \
             DueDiligence \
             debian/changelog \
             debian/compat \
             debian/control \
             debian/copyright \
             debian/libspandsp6.install \
             debian/libspandsp-dev.install \
             debian/libspandsp-doc.install \
             debian/rules \
             debian/watch \
             README.testdata \
             spandsp.pc \
             spandsp.spec \
             spandsp/fax-tests.dtd \
             spandsp/global-tones.xml \
             spandsp/tones.dtd \
             spandsp/tsb85.xml \
             unpack_g722_data.sh \
             unpack_g726_data.sh \
             unpack_gsm0610_data.sh \
             unpack_v56ter_data.sh \
             wrapper.xsl

if COND_DOC
    MAYBE_DOC=doc
endif
if COND_TESTDATA
    MAYBE_TESTDATA=test-data
endif
if COND_TESTS
    MAYBE_TESTDATA=test-data
    MAYBE_TESTS=spandsp-sim tests
endif
SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTDATA) $(MAYBE_TESTS)

DIST_SUBDIRS = src doc test-data spandsp-sim tests

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = spandsp.pc

faq: faq.xml
	cd faq ; xsltproc ../wrapper.xsl ../faq.xml

rpm: rpm-build

rpm-build:
	$(MAKE) -$(MAKEFLAGS) bump.rpm.release
	$(MAKE) -$(MAKEFLAGS) dist
	rm -rf rpm/BUILD/*
	rm -f rpm/RPMS/*/*
	rm -f rpm/SOURCES/*
	rm -f rpm/SPECS/*
	rm -f rpm/SRPMS/*
	rpmbuild -ta --sign @PACKAGE@-@VERSION@.tar.gz

bump.rpm.release: spandsp.spec
	VERSION="x"; \
	test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
	NEXT_RELEASE=0; \
	test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
	RELEASE=`expr $$NEXT_RELEASE + 1`; \
	echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
	echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
	sed 's/^Release: .*/Release: '$$RELEASE'/' \
		<spandsp.spec >spandsp.spec.new; \
	mv spandsp.spec.new spandsp.spec

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