From 113e33727d4fe286ffdc5311393e1c5973774f43 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Thu, 29 Aug 2024 04:11:45 +0200 Subject: [PATCH] Align DESTDIR Use for all installations (which tend to have a build root specified), not for uninstallations (which generally happen on an installed system). Signed-off-by: Georg Pfuetzenreuter --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5dc2059..2552584 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,12 @@ usage: @echo 'Available targets: "install", "uninstall"' install: - install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(SYSCONFDIR)/apparmor.d + install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(SYSCONFDIR)/apparmor.d install buddycheck.pl $(DESTDIR)$(BINDIR)/buddycheck pod2man buddycheck.1 > $(DESTDIR)$(MANDIR)/man1/buddycheck.1 - sed s?__BINDIR__?$(BINDIR)? buddycheck.apparmor > $(SYSCONFDIR)/apparmor.d/buddycheck + sed s?__BINDIR__?$(BINDIR)? buddycheck.apparmor > $(DESTDIR)$(SYSCONFDIR)/apparmor.d/buddycheck uninstall: - rm $(DESTDIR)$(BINDIR)/buddycheck - rm $(DESTDIR)$(MANDIR)/man1/buddycheck.1 + rm $(BINDIR)/buddycheck + rm $(MANDIR)/man1/buddycheck.1 rm $(SYSCONFDIR)/apparmor.d/buddycheck