mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
31 lines
612 B
Makefile
31 lines
612 B
Makefile
if USE_CYTHON
|
|
|
|
noinst_HEADERS = \
|
|
opendht.pyx \
|
|
opendht_cpp.pxd \
|
|
pyproject.toml
|
|
|
|
PYTHON_INSTALL_RECORD = $(builddir)/install_record.txt
|
|
|
|
pybuild.stamp:
|
|
LDFLAGS="-L$(top_srcdir)/src/.libs" $(PYTHON) -m build .
|
|
echo stamp > pybuild.stamp
|
|
|
|
CLEANFILES = pybuild.stamp
|
|
|
|
all-local: pybuild.stamp
|
|
clean-local:
|
|
rm -rf $(builddir)/build $(builddir)/*.so $(PYTHON_INSTALL_RECORD)
|
|
|
|
install-exec-local:
|
|
$(PYTHON) -m pip install --no-deps --no-build-isolation . \
|
|
--root=$(DESTDIR)/ --prefix=$(prefix)
|
|
rm -rf $(builddir)/build
|
|
|
|
if HAVE_PIP
|
|
uninstall-local:
|
|
/usr/bin/yes | $(PIP) uninstall $(PACKAGE)
|
|
endif
|
|
|
|
endif
|