1 EXTRA_DIST = sphinxbase.c \
7 pkginclude_HEADERS = sphinxbase.pxd
10 # Setuptools isn't really compatible with distutils, unfortunately
11 SETUPTOOLS_CRAP = `python -c 'import setuptools' 2>/dev/null \
12 && echo --single-version-externally-managed --record filelist.txt`
14 all-local: pymod-build-stamp
16 install-exec-local: pymod-build-stamp
17 $(PYTHON) setup.py install --prefix $(DESTDIR)$(prefix) $(SETUPTOOLS_CRAP)
20 $(PYTHON) setup.py bogus_uninstall --prefix $(DESTDIR)$(prefix)
23 $(PYTHON) setup.py clean --all
24 # This is dumb, but distutils is completely incapable of VPATH building
25 test -z "$(VPATH)" || $(RM) sphinxbase.c
27 $(RM) pymod-build-stamp filelist.txt
29 pymod-build-stamp: $(srcdir)/sphinxbase.c
30 # This is dumb, but distutils is completely incapable of VPATH building
31 test -z "$(VPATH)" || cp "$(srcdir)/sphinxbase.c" sphinxbase.c
32 $(PYTHON) setup.py build
37 $(srcdir)/sphinxbase.c: $(srcdir)/sphinxbase.pyx $(srcdir)/sphinxbase.pxd