From: Ian Jackson Date: Tue, 28 Dec 2021 17:38:44 +0000 (+0000) Subject: Makefile: Installation refactoring (2) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=commitdiff_plain;h=514f606965698f6625fe8ca2da73f12a049e1d43 Makefile: Installation refactoring (2) Signed-off-by: Ian Jackson --- 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