mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-11-30 10:42:15 +05:30
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:
parent
16dff8bb49
commit
f55fc74ad4
7
Makefile
7
Makefile
@ -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
|
||||
|
@ -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?"
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user