summaryrefslogtreecommitdiff
path: root/gr-audio-portaudio/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio-portaudio/src/Makefile.am')
-rw-r--r--gr-audio-portaudio/src/Makefile.am22
1 files changed, 9 insertions, 13 deletions
diff --git a/gr-audio-portaudio/src/Makefile.am b/gr-audio-portaudio/src/Makefile.am
index 4fa098dcc..f8d42792b 100644
--- a/gr-audio-portaudio/src/Makefile.am
+++ b/gr-audio-portaudio/src/Makefile.am
@@ -1,5 +1,5 @@
#
-# Copyright 2004,2008,2009 Free Software Foundation, Inc.
+# Copyright 2004,2008,2009,2010 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -20,8 +20,11 @@
#
include $(top_srcdir)/Makefile.common
+include $(top_srcdir)/Makefile.swig
-EXTRA_DIST = run_tests.in
+TESTS =
+EXTRA_DIST += run_tests.in
+DISTCLEANFILES += run_tests
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \
$(PORTAUDIO_CFLAGS) $(WITH_INCLUDES)
@@ -51,11 +54,8 @@ libgnuradio_audio_portaudio_la_LIBADD = \
libgnuradio_audio_portaudio_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS)
-if PYTHON
###################################
-# SWIG Python interface and library
-TESTS = run_tests
-DISTCLEANFILES = run_tests
+# SWIG interfaces and libraries
TOP_SWIG_IFILES = \
audio_portaudio.i
@@ -71,11 +71,7 @@ audio_portaudio_pythondir_category = \
audio_portaudio_la_swig_libadd = \
libgnuradio-audio-portaudio.la
-include $(top_srcdir)/Makefile.swig
-# add some of the variables generated inside the Makefile.swig.gen
-BUILT_SOURCES = $(swig_built_sources)
-
-# Do not distribute the output of SWIG
-no_dist_files = $(swig_built_sources)
-endif
+if PYTHON
+TESTS += run_tests
+endif \ No newline at end of file