From 5f3b6e80e2b9df02435acefb193d832beb9a5dd6 Mon Sep 17 00:00:00 2001 From: jcormier Date: Mon, 20 Apr 2020 12:16:39 -0400 Subject: [PATCH] Makefile: Make sure to use $DESTDIR when checking absolute paths --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5ad53c6..e399617 100644 --- a/Makefile +++ b/Makefile @@ -9,15 +9,15 @@ all: install: install -Dm755 create_ap $(DESTDIR)$(BINDIR)/create_ap install -Dm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf - [ ! -d /lib/systemd/system ] || install -Dm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service - [ ! -e /sbin/openrc-run ] || install -Dm755 create_ap.openrc $(DESTDIR)/etc/init.d/create_ap + [ ! -d $(DESTDIR)/lib/systemd/system ] || install -Dm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service + [ ! -e $(DESTDIR)/sbin/openrc-run ] || install -Dm755 create_ap.openrc $(DESTDIR)/etc/init.d/create_ap install -Dm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap install -Dm644 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 /lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service - [ ! -e /sbin/openrc-run ] || rm -f $(DESTDIR)/etc/init.d/create_ap + [ ! -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service + [ ! -e $(DESTDIR)/sbin/openrc-run ] || rm -f $(DESTDIR)/etc/init.d/create_ap rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md