From 8543fead54504beb6c0e1392c9ec3cee1706b62c Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 5 Jun 2025 16:33:17 +0200 Subject: [PATCH] Fix makefile install remove duplicated /man/man1 otherwise, get an error during installation install: target '/usr/local/share/man/man1/man/man1/': No such file or directory Use -D to create missing directory --- packaging/Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packaging/Makefile b/packaging/Makefile index 259e393..1a16acd 100644 --- a/packaging/Makefile +++ b/packaging/Makefile @@ -5,18 +5,18 @@ SYSTEMDDIR ?= /etc/systemd install: install -m755 reaction nft46 ip46tables $(DESTDIR)$(BINDIR) - install -m644 reaction*.1 $(DESTDIR)$(MANDIR)/man/man1/ - install -m644 reaction.bash $(DESTDIR)/share/bash-completion/completions/reaction - install -m644 reaction.fish $(DESTDIR)/share/fish/completions/ - install -m644 _reaction $(DESTDIR)/share/zsh/vendor-completions/ + install -m644 reaction*.1 $(DESTDIR)$(MANDIR)/ + install -Dm644 reaction.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/reaction + install -Dm644 reaction.fish $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d/reaction + install -Dm644 _reaction $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_reaction install -m644 reaction.service $(SYSTEMDDIR)/system/reaction.service remove: rm -f $(DESTDIR)$(BINDIR)/bin/reaction rm -f $(DESTDIR)$(BINDIR)/bin/nft46 rm -f $(DESTDIR)$(BINDIR)/bin/ip46tables - rm -f $(DESTDIR)$(MANDIR)/man/man1/reaction*.1 - rm -f $(DESTDIR)/share/bash-completion/completions/reaction - rm -f $(DESTDIR)/share/fish/completions/ - rm -f $(DESTDIR)/share/zsh/vendor-completions/ + rm -f $(DESTDIR)$(MANDIR)/reaction*.1 + rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/reaction + rm -f $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d/ + rm -f $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/ rm -f $(SYSTEMDDIR)/system/reaction.service