pybatmesh/Makefile
Pranav Jerry 32e9559e6e
fixed bug in main()
For some days I've been testing this program without realising that
gateway_mode was set to off every time. Remove dependencies from install
in Makefile, which we don't need anyway, since it builds twice when
installing from the AUR PKGBUILD.
2021-09-29 08:37:59 +05:30

30 lines
778 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: build/lib/naxalnet/__init__.py
build/lib/naxalnet/__init__.py: naxalnet/__init__.py
$(PYTHON) setup.py build
install:
$(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__