diff options
author | Alexey Neyman <stilor@att.net> | 2018-04-04 00:07:45 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-04-07 12:03:17 -0700 |
commit | 970811a1c58d22fad37d8cbe2233b8344f358e78 (patch) | |
tree | 414e1095de2ae795d543556e14e384f5567fce7e /Makefile.am | |
parent | bb6c97551f7cfafea811367de0a6f382d9aec36b (diff) | |
download | crosstool-ng-970811a1c58d22fad37d8cbe2233b8344f358e78.tar.gz crosstool-ng-970811a1c58d22fad37d8cbe2233b8344f358e78.tar.bz2 crosstool-ng-970811a1c58d22fad37d8cbe2233b8344f358e78.zip |
Conditionally install bash completion
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index a331832b..768a3c53 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,8 +6,13 @@ include verbatim-data.mk SUBDIRS = kconfig bin_SCRIPTS = ct-ng -CLEANFILES = $(bin_SCRIPTS) -EXTRA_DIST = ct-ng.in bootstrap docs/ct-ng.1.in +CLEANFILES = ct-ng ct-ng.comp docs/ct-ng.1 +EXTRA_DIST = bootstrap ct-ng.in ct-ng.comp.in docs/ct-ng.1.in maintainer + +if INSTALL_BASH_COMPLETION +compdir = $(sysconfdir)/@BASH_COMPLETION_DIR@ +comp_SCRIPTS = ct-ng.comp +endif man1_MANS = docs/ct-ng.1 @@ -45,8 +50,11 @@ do_subst = ( @SED@ \ ct-ng: ct-ng.in Makefile $(AM_V_GEN)$(do_subst) < $< >$@-t && chmod a-w,a+x $@-t && mv -f $@-t $@ -docs/ct-ng.1: docs/ct-ng.1.in +docs/ct-ng.1: docs/ct-ng.1.in Makefile $(AM_V_GEN)$(MKDIR_P) docs && $(do_subst) < $< >$@-t && mv -f $@-t $@ +ct-ng.comp: ct-ng.comp.in Makefile + $(AM_V_GEN)$(do_subst) < $< >$@-t && mv -f $@-t $@ + dist-hook: maintainer/download-docs.sh $< $(top_distdir) $(USER_MANUAL_FILES) |