core-lightning/contrib/libhsmd_python/Makefile
Christian Decker 7f15f86718 libhsmd: First working build script for libhsmd-python
Changelog-Added: libhsmd: Added python bindings for `libhsmd`
2021-05-15 09:31:12 +09:30

12 lines
373 B
Makefile

#!/usr/bin/make
LIBHSMD_PY_GEN_FILES := contrib/libhsmd_python/swig_wrap.c \
contrib/libhsmd_python/libhsmd.py
PYTHON_GENERATED += contrib/libhsmd_python/libhsmd.py
# Swig by default generates stubs in the file's directory, which is
# what we want.
$(LIBHSMD_PY_GEN_FILES): contrib/libhsmd_python/swig.i $(HSMD_SRC)
swig -python -builtin contrib/libhsmd_python/swig.i