mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-11-10 15:22:02 +05:30
Pranav Jerry
d7a9edc1e8
* Improved docstrings, README * Added argument --version and its implementation * Added "uninstall" rule to Makefile and added it in the README * Updated CHANGELOG * Cleaned up code I've probably forgot something so we can't merge to master yet. And we still have to add installation instructions for ubuntu and fedora
23 lines
489 B
Makefile
23 lines
489 B
Makefile
# 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
|
|
|
|
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
|