From 514f606965698f6625fe8ca2da73f12a049e1d43 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 28 Dec 2021 17:38:44 +0000 Subject: [PATCH] Makefile: Installation refactoring (2) Signed-off-by: Ian Jackson --- Makefile.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 6221dab..02014c0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -81,10 +81,11 @@ install: all 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 \ - $(INSTALL_DATA) system.override $(etcsubdir); fi + set -e; for f in system.default system.override; do \ + if test ! -f $(etcsubdir)/$$f; then \ + $(INSTALL_DATA) $$f $(etcsubdir); \ + fi; \ + done install-strip: $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install -- 2.30.2