Skip to content
Snippets Groups Projects
Commit d0e281e2 authored by brietzke's avatar brietzke Committed by Peter Scheibel
Browse files

libxsmm package: add variant to build generator executables (#11114)

parent 7ec12c59
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,8 @@ class Libxsmm(MakefilePackage): ...@@ -46,6 +46,8 @@ class Libxsmm(MakefilePackage):
description='Unoptimized with call-trace (LIBXSMM_TRACE).') description='Unoptimized with call-trace (LIBXSMM_TRACE).')
variant('header-only', default=False, variant('header-only', default=False,
description='Produce header-only installation') description='Produce header-only installation')
variant('generator', default=False,
description='build generator executables')
conflicts('+header-only', when='@:1.6.2', conflicts('+header-only', when='@:1.6.2',
msg='Header-only is available since v1.6.2!') msg='Header-only is available since v1.6.2!')
...@@ -88,6 +90,10 @@ def build(self, spec, prefix): ...@@ -88,6 +90,10 @@ def build(self, spec, prefix):
make(*make_args) make(*make_args)
if '+generator' in spec:
make_args += ['generator']
make(*make_args)
def install(self, spec, prefix): def install(self, spec, prefix):
install_tree('include', prefix.include) install_tree('include', prefix.include)
...@@ -101,6 +107,10 @@ def install(self, spec, prefix): ...@@ -101,6 +107,10 @@ def install(self, spec, prefix):
install_tree('src', prefix.src) install_tree('src', prefix.src)
else: else:
install_tree('lib', prefix.lib) install_tree('lib', prefix.lib)
if '+generator' in spec:
install_tree('bin', prefix.bin)
mkdirp(prefix.doc) mkdirp(prefix.doc)
for doc_file in glob(join_path('documentation', '*.md')): for doc_file in glob(join_path('documentation', '*.md')):
install(doc_file, prefix.doc) install(doc_file, prefix.doc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment