From 3dbf9f5f6a117f80243cdd2f21669f8266347de8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 28 Dec 2021 17:35:35 +0000 Subject: [PATCH] Makefile: Installation refactoring (1) Signed-off-by: Ian Jackson --- Makefile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9abd1b8..6221dab 100644 --- a/Makefile.in +++ b/Makefile.in @@ -78,8 +78,9 @@ docs: $(TARGETS_DOC) install: all $(INSTALL_PROGRAM) -m 755 daemon $(sbindir)/uservd $(INSTALL_PROGRAM) -m 4755 client $(bindir)/userv - $(INSTALL) -d -m 2755 $(etcsubdir) \ - $(etcsubdir)/default.d $(etcsubdir)/services.d $(etcsubdir)/override.d + set -e; for f in '' /default.d /services.d /override.d; do \ + $(INSTALL) -d -m 2755 $(etcsubdir)$$f; \ + done if test ! -f $(etcsubdir)/system.default; then \ $(INSTALL_DATA) system.default $(etcsubdir); fi if test ! -f $(etcsubdir)/system.override; then \ -- 2.30.2