mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-12-26 18:10:21 +05:30
Pranav Jerry
e28a0f7583
Fixed permissions in install lines in Makefile. The systemd service now stops NetworkManager and wpa_supplicant before starting naxalnet. It also starts systemd-{networkd,resolved} and iwd alongside naxalnet.service.
17 lines
553 B
Makefile
17 lines
553 B
Makefile
PREFIX := /usr
|
|
|
|
install: naxalnet
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
install -d $(DESTDIR)$(PREFIX)/lib/systemd/system/
|
|
install -m644 naxalnet.service $(DESTDIR)$(PREFIX)/lib/systemd/system/
|
|
install naxalnet $(DESTDIR)$(PREFIX)/bin/
|
|
install -d $(DESTDIR)$(PREFIX)/share/naxalnet/networkd
|
|
install -m644 systemd-networkd/* $(DESTDIR)$(PREFIX)/share/naxalnet/networkd
|
|
|
|
testdeps:
|
|
@for i in networkctl systemctl python3; do \
|
|
echo "Checking for $$i"; \
|
|
which $$i > /dev/null && echo " $$i found" || \
|
|
(echo " $$i not found"; exit 1); \
|
|
done
|