Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mdhorn/88e3d187838a842d158f1d9471579664 to your computer and use it in GitHub Desktop.
Save mdhorn/88e3d187838a842d158f1d9471579664 to your computer and use it in GitHub Desktop.
patch to update Makefile
From aff858ae0fb31ca7026641bdef6d5ccf3475201e Mon Sep 17 00:00:00 2001
From: Mark D Horn <mark.d.horn@intel.com>
Date: Tue, 28 Apr 2020 09:47:28 -0700
Subject: [PATCH] Update Makefile to install completions
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index e917f5f44a17..2567a66234aa 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,8 @@ DESKTOP_DIR=$(DESTDIR)/usr/share/applications/
CONFIG_DIR=$(DESTDIR)/usr/share/defaults/clr-installer/
SYSTEMD_DIR=$(DESTDIR)/usr/lib/systemd/system/
PKIT_DIR=$(DESTDIR)/usr/share/polkit-1/
+BASH_COMP_DIR=$(DESTDIR)/usr/share/bash-completion/completions/
+ZSH_COMP_DIR=$(DESTDIR)/usr/share/zsh/site-functions/
BUILDDATE=$(shell date -u "+%Y-%m-%d_%H:%M:%S_%Z")
# Are we running from a Git Repo?
@@ -97,6 +99,8 @@ install-common:
@install -D -m 644 $(top_srcdir)/etc/kernels.json $(CONFIG_DIR)/kernels.json
@install -D -m 644 $(top_srcdir)/etc/chpasswd $(CONFIG_DIR)/chpasswd
@install -D -m 644 $(top_srcdir)/etc/systemd/clr-installer-provision.service $(SYSTEMD_DIR)/clr-installer-provision.service
+ @install -D -m 644 $(top_srcdir)/completions/bash/clr-installer $(BASH_COMP_DIR)/clr-installer
+ @install -D -m 644 $(top_srcdir)/completions/zsh/_clr-installer $(ZSH_COMP_DIR)/_clr-installer
install-tui: build-tui install-common
@install -D -m 755 $(top_srcdir)/.gopath/bin/clr-installer-tui $(DESTDIR)/usr/bin/clr-installer
--
2.26.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment