From 893e1a62a7efdcf9d84cc98179de58d032430d5f Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 16 Feb 2021 14:10:33 +1100 Subject: [PATCH] Makefile: If required, create parent directories when installing. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 929efd5..72f2020 100644 --- a/Makefile +++ b/Makefile @@ -35,8 +35,8 @@ man7_targets = \ all: install install: - install -m 644 $(man1_targets) $(man1) - install -m 644 $(man7_targets) $(man7) + install -D -m 644 -t $(man1) $(man1_targets) + install -D -m 644 -t $(man7) $(man7_targets) uninstall: cd $(man1); rm -f $(man1_targets) -- 2.45.2