pybatmesh/Makefile

23 lines
489 B
Makefile
Raw Normal View History

# This makefile uses setup.py under the hood.
# In ubuntu, python and pip are symlinks to python2 and pip2.
# So we have to specify python as python3 by default.
PYTHON := python3
PIP := pip3
DESTDIR:= /
all: build
2021-05-10 15:15:42 +05:30
build:
$(PYTHON) setup.py build
install: build
$(PYTHON) setup.py install --root="$(DESTDIR)" --optimize=1 --skip-build
2021-07-26 12:44:24 +05:30
uninstall:
$(PIP) uninstall naxalnet
rm -rf /usr/share/naxalnet /usr/lib/systemd/system/naxalnet.service
2021-07-26 12:44:24 +05:30
clean:
rm -rf build naxalnet.egg-info