]> git.0d.be Git - jack_mixer.git/blob - Makefile.am
Include CHANGES file in distribution tarball.
[jack_mixer.git] / Makefile.am
1 #
2 # This file is part of jack_mixer
3 #
4 # Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name>
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19
20 AM_CFLAGS = @JACK_CFLAGS@ -D_GNU_SOURCE -Wall -Werror -fno-strict-aliasing
21 INCLUDES = $(PYTHON_INCLUDES)
22
23 jack_mixerdir = $(pkgdatadir)
24 pkgpyexecdir = $(pythondir)
25 pkgpyexec_LTLIBRARIES = _jack_mixer_c.la
26
27 _jack_mixer_c_la_LDFLAGS = -module -avoid-version
28
29 _jack_mixer_c_la_LIBADD = @JACK_LIBS@
30
31 dist_jack_mixer_DATA = abspeak.py channel.py gui.py meter.py scale.py serialization.py serialization_xml.py slider.py jack_mixer.glade
32
33 jack_mixer_c.py jack_mixer_wrap.c: $(top_srcdir)/jack_mixer.h
34         swig -o jack_mixer_wrap.c -I$(top_srcdir) -python $(top_srcdir)/jack_mixer.h
35
36 pkgpyexec_SCRIPTS = jack_mixer_c.py
37
38 CLEANFILES = jack_mixer_c.py jack_mixer_wrap.c *.pyc
39 EXTRA_DIST = test.py gpl.txt jack_mixer.schemas jack_mixer.py jack_mixer_c.py CHANGES
40
41 _jack_mixer_c_la_SOURCES = jack_mixer.c jack_mixer.h list.h jack_mixer_wrap.c memory_atomic.c memory_atomic.h log.h log.c scale.c jack_compat.h
42
43 bin_SCRIPTS = $(srcdir)/jack_mixer.py
44
45 _jack_mixer_c.so: _jack_mixer_c.la
46         ln -nfs .libs/_jack_mixer_c.so
47
48 test: _jack_mixer_c.so
49         @./test.py
50
51 schemadir = @GCONF_SCHEMA_FILE_DIR@
52 schema_DATA = jack_mixer.schemas
53
54 install-exec-hook:
55         ln -vfs jack_mixer.py $(DESTDIR)$(bindir)/jack_mixer
56
57 if GCONF_SCHEMAS_INSTALL
58 install-data-hook:
59         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
60
61 uninstall-hook:
62         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(srcdir)/$(schema_DATA)
63         rm -vf $(DESTDIR)$(bindir)/jack_mixer
64 endif