Skip to content

Commit

Permalink
contrib/completion: add a dedicated Makefile.am
Browse files Browse the repository at this point in the history
No need to handle it from the root Makefile.am
Handle things here so that they can be removed from the
embedded and OMPI tarballs too.

Signed-off-by: Brice Goglin <[email protected]>
  • Loading branch information
bgoglin committed Jan 22, 2020
1 parent 238bf14 commit 09bc6ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if HWLOC_BUILD_STANDALONE
if BUILD_NETLOC
SUBDIRS += netloc
endif
SUBDIRS += utils tests contrib/systemd contrib/misc contrib/hwloc-ps.www
SUBDIRS += utils tests contrib/systemd contrib/completion contrib/misc contrib/hwloc-ps.www
# We need doc/ if HWLOC_BUILD_DOXYGEN, or during make install if HWLOC_INSTALL_DOXYGEN.
# There's no INSTALL_SUBDIRS, so always enter doc/ and check HWLOC_BUILD/INSTALL_DOXYGEN there
SUBDIRS += doc
Expand Down Expand Up @@ -56,8 +56,6 @@ endif HWLOC_BUILD_STANDALONE
# Only install the valgrind suppressions file if we're building in
# standalone mode
if HWLOC_BUILD_STANDALONE
bashcompdir = $(sysconfdir)/bash_completion.d
dist_bashcomp_DATA = contrib/completion/hwloc-completion.bash
dist_pkgdata_DATA = contrib/hwloc-valgrind.supp
endif

Expand Down
1 change: 1 addition & 0 deletions config/hwloc_internal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ int foo(void) {
hwloc_config_prefix[utils/netloc/infiniband/netloc_ib_gather_raw]
hwloc_config_prefix[contrib/hwloc-ps.www/Makefile]
hwloc_config_prefix[contrib/systemd/Makefile]
hwloc_config_prefix[contrib/completion/Makefile]
hwloc_config_prefix[contrib/misc/Makefile]
hwloc_config_prefix[contrib/windows/Makefile]
hwloc_config_prefix[contrib/windows/test-windows-version.sh]
Expand Down
8 changes: 8 additions & 0 deletions contrib/completion/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright © 2009-2020 Inria. All rights reserved.
#
# See COPYING in top-level directory.

# This makefile is only reached when building in standalone mode

bashcompdir = $(sysconfdir)/bash_completion.d
dist_bashcomp_DATA = hwloc-completion.bash

0 comments on commit 09bc6ad

Please sign in to comment.