2021-05-11 13:10:31 +05:30
|
|
|
PREFIX := /usr
|
2021-05-10 15:15:42 +05:30
|
|
|
|
|
|
|
install: naxalnet
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/lib/systemd/system/
|
2021-06-06 11:25:37 +05:30
|
|
|
install -m644 naxalnet.service $(DESTDIR)$(PREFIX)/lib/systemd/system/
|
2021-05-10 15:15:42 +05:30
|
|
|
install naxalnet $(DESTDIR)$(PREFIX)/bin/
|
2021-06-04 22:27:54 +05:30
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/naxalnet/networkd
|
2021-06-06 11:25:37 +05:30
|
|
|
install -m644 systemd-networkd/* $(DESTDIR)$(PREFIX)/share/naxalnet/networkd
|
2021-06-04 22:27:54 +05:30
|
|
|
|
|
|
|
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
|