5
|
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
|
|
2 ##
|
|
3 ## This program is free software; you can redistribute it and/or modify
|
|
4 ## it under the terms of the GNU General Public License version 2, as
|
|
5 ## published by the Free Software Foundation.
|
|
6 ##
|
|
7 ## This program is distributed in the hope that it will be useful,
|
|
8 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 ## GNU General Public License for more details.
|
|
11 ##
|
|
12 ## You should have received a copy of the GNU General Public License
|
|
13 ## along with this program; if not, write to the Free Software
|
|
14 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
15 ##
|
|
16 ## $Id: Makefile.am,v 1.20 2006/12/06 13:53:36 steveu Exp $
|
|
17
|
|
18 AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
|
|
19
|
|
20 noinst_SCRIPTS = spandsp.spec
|
|
21
|
|
22 nobase_data_DATA = spandsp/global-tones.xml spandsp/tones.dtd
|
|
23
|
|
24 MAINTAINERCLEANFILES = Makefile.in
|
|
25
|
|
26 EXTRA_DIST = DueDiligence \
|
|
27 spandsp.spec \
|
|
28 wrapper.xsl \
|
|
29 libspandsp.vcproj \
|
|
30 doc/libspandsp-doxygen \
|
|
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/spandsp.def \
|
|
37 src/msvc/msvcproj.head \
|
|
38 src/msvc/msvcproj.foot \
|
|
39 src/msvc/vc8proj.head \
|
|
40 src/msvc/vc8proj.foot \
|
|
41 src/libspandsp.sln \
|
|
42 spandsp/global-tones.xml \
|
|
43 spandsp/tones.dtd
|
|
44
|
|
45 if COND_DOC
|
|
46 MAYBE_DOC=doc
|
|
47 endif
|
|
48 if COND_TESTS
|
|
49 MAYBE_TESTS=tests
|
|
50 endif
|
|
51 if COND_ITUTESTS
|
|
52 MAYBE_ITUTESTS=itutests
|
|
53 endif
|
|
54 SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS) $(MAYBE_ITUTESTS)
|
|
55
|
|
56 DIST_SUBDIRS = src doc tests itutests
|
|
57
|
|
58 faq: faq.xml
|
|
59 cd faq ; xsltproc ../wrapper.xsl ../faq.xml
|
|
60
|
|
61 rpm: rpm-build
|
|
62
|
|
63 rpm-build:
|
|
64 $(MAKE) -$(MAKEFLAGS) bump.rpm.release
|
|
65 $(MAKE) -$(MAKEFLAGS) dist
|
|
66 rm -rf rpm/BUILD/*
|
|
67 rm -f rpm/RPMS/*/*
|
|
68 rm -f rpm/SOURCES/*
|
|
69 rm -f rpm/SPECS/*
|
|
70 rm -f rpm/SRPMS/*
|
|
71 rpm -ta --sign @PACKAGE@-@VERSION@.tar.gz
|
|
72
|
|
73 bump.rpm.release: spandsp.spec
|
|
74 VERSION="x"; \
|
|
75 test -f $(srcdir)/rpm.release && . $(srcdir)/rpm.release; \
|
|
76 NEXT_RELEASE=0; \
|
|
77 test "$$VERSION" = "@VERSION@" && NEXT_RELEASE="$$RELEASE"; \
|
|
78 RELEASE=`expr $$NEXT_RELEASE + 1`; \
|
|
79 echo "VERSION=@VERSION@" >$(srcdir)/rpm.release; \
|
|
80 echo "RELEASE=$$RELEASE" >>$(srcdir)/rpm.release; \
|
|
81 sed 's/^Release: .*/Release: '$$RELEASE'/' \
|
|
82 <spandsp.spec >spandsp.spec.new; \
|
|
83 mv spandsp.spec.new spandsp.spec
|