added PYTHON variable in Makefile

This should be used if the python executable is not python3 in your
distro.

I would like to express my displeasure to the Government of India for
not including me in the list of targets for Pegasus, even though I'm
convinced I am a threat to the sovereignty and integrity of the nation
This commit is contained in:
Pranav Jerry 2021-08-01 16:58:48 +05:30
parent 16dff8bb49
commit f55fc74ad4
No known key found for this signature in database
GPG Key ID: F1DCDC4FED0A0C5B
3 changed files with 17 additions and 4 deletions

View File

@ -1,11 +1,14 @@
# This makefile uses setup.py under the hood
PYTHON := python3
DESTDIR:= /
all: build
build:
python3 setup.py build
$(PYTHON) setup.py build
install: build
python3 setup.py install --root="$(DESTDIR)/" --optimize=1 --skip-build
$(PYTHON) setup.py install --root="$(DESTDIR)" --optimize=1 --skip-build
clean:
rm -rf build naxalnet.egg-info

View File

@ -200,7 +200,7 @@ available, consider using them instead of naxalnet.
## License
This program is free software: you can redistribute it and/or modify
This program is [free/libre/swatantra][free-sw] software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@ -221,3 +221,4 @@ license.
[disaster.radio]: https://disaster.radio/
[startnx]: #start-naxalnet
[iwd]: https://iwd.wiki.kernel.org "wifi daemon"
[free-sw]: https://gnu.org/philosophy/free-sw.html "What is free software?"

View File

@ -119,7 +119,9 @@ def here_be_dragons():
def parse_args():
parser = ArgumentParser(description="setup batman networks")
parser = ArgumentParser(
description="setup batman-adv networks with systemd and iwd"
)
parser.add_argument(
"--ap-ssid",
type=str,
@ -136,5 +138,12 @@ def parse_args():
parser.add_argument(
"--adhoc-name", type=str, default=ADHOC_NAME, help="name of adhoc network"
)
parser.add_argument(
"-v",
"--verbose",
help="increase output verbosity; can be used multiple times",
action="count",
default=0,
)
return parser.parse_args()