|
Packit Service |
c5cf8c |
# Copyright © 2009-2018 Inria. All rights reserved.
|
|
Packit Service |
c5cf8c |
# Copyright © 2009 Université Bordeaux
|
|
Packit Service |
c5cf8c |
# Copyright © 2009-2014 Cisco Systems, Inc. All rights reserved.
|
|
Packit Service |
c5cf8c |
# See COPYING in top-level directory.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# Note that the -I directory must *exactly* match what was specified
|
|
Packit Service |
c5cf8c |
# via AC_CONFIG_MACRO_DIR in configure.ac.
|
|
Packit Service |
c5cf8c |
ACLOCAL_AMFLAGS = -I ./config
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
# "make distcheck" requires that tarballs are able to be able to "make
|
|
Packit Service |
c5cf8c |
# dist", so we have to include config/distscript.sh.
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
EXTRA_DIST = \
|
|
Packit Service |
c5cf8c |
README VERSION COPYING AUTHORS \
|
|
Packit Service |
c5cf8c |
config/hwloc_get_version.sh \
|
|
Packit Service |
c5cf8c |
config/distscript.sh
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
SUBDIRS = include hwloc
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
if BUILD_NETLOC
|
|
Packit Service |
c5cf8c |
SUBDIRS += netloc
|
|
Packit Service |
c5cf8c |
endif
|
|
Packit Service |
c5cf8c |
SUBDIRS += utils tests contrib/systemd contrib/misc
|
|
Packit Service |
c5cf8c |
# We need doc/ if HWLOC_BUILD_DOXYGEN, or during make install if HWLOC_INSTALL_DOXYGEN.
|
|
Packit Service |
c5cf8c |
# There's no INSTALL_SUBDIRS, so always enter doc/ and check HWLOC_BUILD/INSTALL_DOXYGEN there
|
|
Packit Service |
c5cf8c |
SUBDIRS += doc
|
|
Packit Service |
c5cf8c |
endif
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# Do not let automake automatically add the non-standalone dirs to the
|
|
Packit Service |
c5cf8c |
# distribution tarball if we're building in embedded mode.
|
|
Packit Service |
c5cf8c |
DIST_SUBDIRS = $(SUBDIRS)
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
DIST_SUBDIRS += contrib/windows
|
|
Packit Service |
c5cf8c |
if !BUILD_NETLOC
|
|
Packit Service |
c5cf8c |
DIST_SUBDIRS += netloc
|
|
Packit Service |
c5cf8c |
endif
|
|
Packit Service |
c5cf8c |
endif
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# Only install the pkg file if we're building in standalone mode (and not on Windows)
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
hwlocpkgconfigdir = $(libdir)/pkgconfig
|
|
Packit Service |
c5cf8c |
hwlocpkgconfig_DATA = hwloc.pc
|
|
Packit Service |
c5cf8c |
if BUILD_NETLOC
|
|
Packit Service |
c5cf8c |
# JMS Need to compare hwloc.pc and netloc.pc -- I think netloc.pc is
|
|
Packit Service |
c5cf8c |
# missing some things.
|
|
Packit Service |
c5cf8c |
# pkgconfig_DATA += netloc.pc Disabled until the netloc API is public
|
|
Packit Service |
c5cf8c |
EXTRA_DIST += netloc.pc
|
|
Packit Service |
c5cf8c |
if BUILD_NETLOCSCOTCH
|
|
Packit Service |
c5cf8c |
hwlocpkgconfig_DATA += netlocscotch.pc
|
|
Packit Service |
c5cf8c |
endif BUILD_NETLOCSCOTCH
|
|
Packit Service |
c5cf8c |
endif BUILD_NETLOC
|
|
Packit Service |
c5cf8c |
endif HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# Only install the valgrind suppressions file if we're building in
|
|
Packit Service |
c5cf8c |
# standalone mode
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
dist_pkgdata_DATA = contrib/hwloc-valgrind.supp
|
|
Packit Service |
c5cf8c |
endif
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# Only install entire visual studio subdirectory if we're building in
|
|
Packit Service |
c5cf8c |
# standalone mode
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
EXTRA_DIST += contrib/windows
|
|
Packit Service |
c5cf8c |
endif
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
dist-hook:
|
|
Packit Service |
c5cf8c |
sh "$(top_srcdir)/config/distscript.sh" "$(top_srcdir)" "$(distdir)" "$(HWLOC_VERSION)"
|
|
Packit Service |
c5cf8c |
endif HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
if HWLOC_HAVE_WINDOWS
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
# Winball specific rules
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
install-data-local:
|
|
Packit Service |
c5cf8c |
sed -e 's/$$/'$$'\015'/ < $(srcdir)/README > $(DESTDIR)$(prefix)/README.txt
|
|
Packit Service |
c5cf8c |
sed -e 's/$$/'$$'\015'/ < $(srcdir)/NEWS > $(DESTDIR)$(prefix)/NEWS.txt
|
|
Packit Service |
c5cf8c |
sed -e 's/$$/'$$'\015'/ < $(srcdir)/COPYING > $(DESTDIR)$(prefix)/COPYING.txt
|
|
Packit Service |
c5cf8c |
uninstall-local:
|
|
Packit Service |
c5cf8c |
rm -f $(DESTDIR)$(prefix)/README.txt $(DESTDIR)$(prefix)/NEWS.txt $(DESTDIR)$(prefix)/COPYING.txt
|
|
Packit Service |
c5cf8c |
endif HWLOC_HAVE_WINDOWS
|
|
Packit Service |
c5cf8c |
endif HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
# Build the documenation and top-level README file
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
if HWLOC_BUILD_STANDALONE
|
|
Packit Service |
c5cf8c |
.PHONY: doc readme
|
|
Packit Service |
c5cf8c |
doc readme:
|
|
Packit Service |
c5cf8c |
$(MAKE) -C doc
|
|
Packit Service |
c5cf8c |
endif HWLOC_BUILD_STANDALONE
|