vlc/bindings/python/Makefile.am

28 lines
845 B
Makefile

##############################################################################
# Building the Python binding
###############################################################################
EXTRA_DIST = vlcglue.h setup.py vlcwrapper.py vlcwidget.py \
vlc_module.c \
vlc_mediacontrol.c vlc_position.c \
vlc_instance.c vlc_input.c
if BUILD_PYTHON
all:
if HAVE_WIN32
COMPILERARG=--compiler=mingw32
else
COMPILERARG=
endif
srcdir="$(srcdir)" top_builddir="$(top_builddir)" python "$(srcdir)/setup.py" build $(COMPILERARG) "--build-base=$(top_builddir)/bindings/python" "--build-temp=$(top_builddir)/bindings/python"
# FIXME: python setup.py install does not have any option to install from a different build directory
# so this will not work in a separate builddir
install:
python $(srcdir)/setup.py install
clean:
$(RM) -rf build
endif