From 9182e360a1879a5d74c9f3c8db8635ee97a3d8a4 Mon Sep 17 00:00:00 2001 From: Mark Wagie Date: Mon, 18 Jan 2021 10:58:22 -0700 Subject: [PATCH] Update Makefile --- src/scripts/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/Makefile b/src/scripts/Makefile index c57dc4d..b4415bc 100644 --- a/src/scripts/Makefile +++ b/src/scripts/Makefile @@ -9,7 +9,7 @@ all: install: install -CDm755 create_ap $(DESTDIR)$(BINDIR)/create_ap install -CDm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf - [ ! -d $(DESTDIR)/lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)/lib/systemd/system/create_ap.service + install -CDm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service install -CDm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md install -CDm755 wihotspot $(DESTDIR)$(BINDIR)/wihotspot @@ -17,14 +17,14 @@ install: install-cli-only: install -CDm755 create_ap $(DESTDIR)$(BINDIR)/create_ap install -CDm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf - [ ! -d $(DESTDIR)/lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)/lib/systemd/system/create_ap.service + install -CDm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service install -CDm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md uninstall: rm -f $(DESTDIR)$(BINDIR)/create_ap rm -f $(DESTDIR)/etc/create_ap.conf - [ ! -f $(DESTDIR)/lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)/lib/systemd/system/create_ap.service + rm -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md rm -f /etc/sudoers.d/create_ap # For older versions