split makefiles

This commit is contained in:
Devaev Maxim
2021-04-02 01:00:22 +03:00
parent 7ce11fecb6
commit e1b2eceea5
4 changed files with 169 additions and 116 deletions

20
python/Makefile Normal file
View File

@@ -0,0 +1,20 @@
-include ../config.mk
DESTDIR ?=
PREFIX ?= /usr/local
PY ?= python3
# =====
all:
$(info == PY_BUILD ustreamer-*.so)
@ $(PY) setup.py build
install:
$(PY) setup.py install --prefix=$(PREFIX) --root=$(if $(DESTDIR),$(DESTDIR),/)
clean:
rm -rf build