mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-11-27 09:11:59 +05:30
Pranav Jerry
d18160c46c
Buffering makes the systemd journal not show the logs at the right time. And changed the systemd service file so that the new batman and bridge interfaces are deleted when naxalnet.service is stopped. Also simplified the Stopping section in the README because of this change.
23 lines
517 B
Makefile
23 lines
517 B
Makefile
# This makefile uses setup.py under the hood.
|
|
# In ubuntu, python and pip are symlinks to python2 and pip2, not
|
|
# python3. So we have to specify python as python3 by default.
|
|
PYTHON := python3
|
|
PIP := pip3
|
|
DESTDIR:= /
|
|
|
|
all: build
|
|
|
|
build:
|
|
$(PYTHON) setup.py build
|
|
|
|
install: build
|
|
$(PYTHON) setup.py install --root="$(DESTDIR)" --optimize=1 --skip-build
|
|
|
|
uninstall:
|
|
$(PIP) uninstall naxalnet
|
|
rm -rf /usr/share/naxalnet /usr/lib/systemd/system/naxalnet.service
|
|
|
|
|
|
clean:
|
|
rm -rf build naxalnet.egg-info **/__pycache__
|