1 EXTRA_DIST = pocketsphinx.c \
7 pkginclude_HEADERS = pocketsphinx.pxd
9 noinst_HEADERS = bogus_pygobject.h
12 # Setuptools isn't really compatible with distutils, unfortunately
13 SETUPTOOLS_CRAP = `python -c 'import setuptools' 2>/dev/null \
14 && echo --single-version-externally-managed --record filelist.txt`
16 all-local: pymod-build-stamp
18 install-exec-local: pymod-build-stamp
19 $(PYTHON) setup.py install --prefix $(DESTDIR)$(prefix) $(SETUPTOOLS_CRAP)
22 $(PYTHON) setup.py bogus_uninstall --prefix $(DESTDIR)$(prefix)
25 $(PYTHON) setup.py clean --all
26 # This is dumb, but distutils is completely incapable of VPATH building
27 test -z "$(VPATH)" || $(RM) pocketsphinx.c
29 $(RM) pymod-build-stamp filelist.txt
31 pymod-build-stamp: $(srcdir)/pocketsphinx.c
32 # This is dumb, but distutils is completely incapable of VPATH building
33 test -z "$(VPATH)" || cp "$(srcdir)/pocketsphinx.c" pocketsphinx.c
34 $(PYTHON) setup.py build
39 $(srcdir)/pocketsphinx.c: $(srcdir)/pocketsphinx.pyx $(srcdir)/pocketsphinx.pxd
40 cython -o $@ $< $(CPPFLAGS) -I$(sphinxbase)/python