summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-01-24 11:16:23 -0500
committerTavian Barnes <tavianator@tavianator.com>2021-01-24 11:22:53 -0500
commit876fb5fdc3aa157f319a1347e06f8ffa39a69aa6 (patch)
tree6334cc4f4016bfd0e6d142ccb7cd6f43193d44ff /Makefile
parented59c036124c231c3d8514367d54d3f5901c0aca (diff)
downloadbfs-876fb5fdc3aa157f319a1347e06f8ffa39a69aa6.tar.xz
Makefile: Install completions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 832586a..ed793a7 100644
--- a/Makefile
+++ b/Makefile
@@ -204,10 +204,13 @@ install:
$(INSTALL) -m755 bfs $(DESTDIR)$(PREFIX)/bin/bfs
$(MKDIR) $(DESTDIR)$(MANDIR)/man1
$(INSTALL) -m644 bfs.1 $(DESTDIR)$(MANDIR)/man1/bfs.1
+ $(MKDIR) $(DESTDIR)$(PREFIX)/share/bash-completion/completions
+ $(INSTALL) -m644 completions/bfs.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/bfs
uninstall:
- $(RM) $(DESTDIR)$(PREFIX)/bin/bfs
+ $(RM) $(DESTDIR)$(PREFIX)/share/bash-completion/completions/bfs
$(RM) $(DESTDIR)$(MANDIR)/man1/bfs.1
+ $(RM) $(DESTDIR)$(PREFIX)/bin/bfs
.PHONY: default all $(FLAG_GOALS) check $(CHECKS) distcheck clean install uninstall