mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-11-08 21:52:35 +05:30
Pranav Jerry
c8f032a3d0
* make will now build every time naxalnet/__init__.py is changed. * Changed content related to online classes in README.md. It seems online classes are a luxury even in urban areas in some parts of India. * Added argument -V as alias for --verbose
28 lines
720 B
Makefile
28 lines
720 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: naxalnet/__init__.py
|
|
$(PYTHON) setup.py build
|
|
|
|
install: build
|
|
$(PYTHON) setup.py install --root="$(DESTDIR)" --optimize=1 --skip-build
|
|
|
|
uninstall:
|
|
$(PIP) uninstall -y naxalnet
|
|
rm -rf /usr/share/naxalnet /usr/lib/systemd/system/naxalnet.service
|
|
@echo "The directory /etc/naxalnet was not removed." && \
|
|
echo "Do 'sudo make purge' to remove it."
|
|
|
|
# remove config files, like apt purge
|
|
purge: uninstall
|
|
rm -rf /etc/naxalnet
|
|
|
|
clean:
|
|
rm -rf build naxalnet.egg-info **/__pycache__
|