From 3e8837f3c6588295c0123f130554ff2b1db29315 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Tue, 21 Jan 2025 10:29:32 +0000 Subject: [PATCH] Makefile: only create MANDIR when manpage is installed When not installing the manpage there is no use in creating the directory Fixes f3523912562 Makefile: check for trurl.1 before installing --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67acb5ce..0128d9b3 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,8 @@ trurl.o: trurl.c version.h install: $(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR) - $(INSTALL) -d $(DESTDIR)$(MANDIR) (if test -f $(MANUAL); then \ + $(INSTALL) -d $(DESTDIR)$(MANDIR); \ $(INSTALL) -m 0644 $(MANUAL) $(DESTDIR)$(MANDIR); \ fi) (if test -f $(COMPLETION_FILES); then \