X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=python%2FMakefile.am;h=82960d6bb68415113ebf2bf30374880cb459ec2d;hp=da52cfa32a968bcb7f153b0474f8d3476c854b5d;hb=e07774344208c9ee4e32d35061ba67591e4c441f;hpb=11400fde901e1c7a6d3c3887f322af66374793c2 diff --git a/python/Makefile.am b/python/Makefile.am index da52cfa..82960d6 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -18,30 +18,37 @@ # Old RHEL 5 autoconf doesn't have builddir. builddir ?= $(top_builddir)/python -EXTRA_DIST = \ - guestfs.py \ +include $(top_srcdir)/subdir-rules.mk + +generator_built = \ guestfs-py.c \ - bindtests.py \ + guestfs.py \ + bindtests.py + +EXTRA_DIST = \ + $(generator_built) \ run-bindtests \ run-python-tests \ t/*.py if HAVE_PYTHON -pythondir = $(PYTHON_SITE_PACKAGES) +pythondir = $(PYTHON_INSTALLDIR) python_DATA = guestfs.py python_LTLIBRARIES = libguestfsmod.la -libguestfsmod_la_SOURCES = guestfs-py.c +libguestfsmod_la_SOURCES = guestfs-py.c guestfs-py.h guestfs-py-byhand.c libguestfsmod_la_CFLAGS = -Wall -I$(PYTHON_INCLUDEDIR) \ -I$(top_srcdir)/src -I$(top_builddir)/src libguestfsmod_la_LIBADD = $(top_builddir)/src/libguestfs.la +libguestfsmod_la_LDFLAGS = -avoid-version -shared TESTS_ENVIRONMENT = \ LIBGUESTFS_PATH=$(top_builddir)/appliance \ - PYTHONPATH=$(builddir):$(builddir)/.libs + PYTHONPATH=$(builddir):$(builddir)/.libs \ + TMPDIR=$(top_builddir) TESTS = run-bindtests run-python-tests