From 16057538f6ff0209a0dfe40067d6fc7a8cadeaab Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Wed, 17 Jan 2018 14:17:13 -0800 Subject: [PATCH] Cleanup iscsiuio master Makefile template. Make sure needed directories exist, and make sure install/symbolic linking of target works, even when not in root=/. --- iscsiuio/Makefile.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/iscsiuio/Makefile.am b/iscsiuio/Makefile.am index c70103027be5..97f478fa2fe6 100644 --- a/iscsiuio/Makefile.am +++ b/iscsiuio/Makefile.am @@ -19,11 +19,15 @@ install-am: all-am install-man: cat docs/iscsiuio.8 | GZIP=$(GZIP_ENV) gzip -c > iscsiuio.8.gz - $(INSTALL_PROGRAM) iscsiuio.8.gz $(mandir)/man8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8/ + $(INSTALL_DATA) iscsiuio.8.gz $(DESTDIR)$(mandir)/man8/ install-log: - $(INSTALL_PROGRAM) iscsiuiolog $(logdir) + $(INSTALL) -d $(DESTDIR)$(logdir)/ + $(INSTALL_DATA) iscsiuiolog $(DESTDIR)$(logdir)/ install-brcm: - -rm -f $(sbindir)/brcm_iscsiuio - -ln -s $(sbindir)/iscsiuio $(sbindir)/brcm_iscsiuio + $(RM) $(DESTDIR)$(sbindir)/brcm_iscsiuio + (cd $(DESTDIR)/$(sbindir); \ + $(RM) brcm_iscsiuio; \ + $(LN_S) iscsiuio brcm_iscsiuio) -- 2.17.2