Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
0bbfddd3
Commit
0bbfddd3
authored
Feb 17, 2016
by
gsell
Browse files
MPI/cpmd/build: fixes, cleanup
parent
a50ae8e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
MPI/cpmd/build
MPI/cpmd/build
+18
-3
No files found.
MPI/cpmd/build
View file @
0bbfddd3
#!/usr/bin/env modbuild
#pbuild::supported_os 'Linux'
case
$
OS
in
Linux
)
target
=
'LINUX-X86_64-FEDORA-MPI-FFTW'
;;
Darwin
)
target
=
'MACOSX-GFORTRAN-INTEL-MPI'
;;
esac
pbuild
::
configure
()
{
cp
"${BUILDSCRIPT_DIR}/Makefile"
"${MODULE_BUILDDIR}"
||
exit
1
cp
"${MODULE_SRCDIR}/irat.inc"
"${MODULE_BUILDDIR}"
||
exit
1
.
/
configure
.
sh
"${target}"
||
exit
1
}
pbuild
::
build
()
{
make
}
pbuild
::
install
()
{
mkdir
-
p
"${PREFIX}/bin"
cp
"${MODULE_
BUILDDIR}
/cpmd.x"
"${PREFIX}/bin"
cp
"${MODULE_
SRCDIR}/bin
/cpmd.x"
"${PREFIX}/bin"
}
pbuild
::
add_to_group
'MPI'
pbuild
::
set_runtime_dependencies
"${COMPILER}"
"${MPI}"
pbuild
::
set_build_dependencies
"${COMPILER}"
"${MPI}"
pbuild
::
compile_in_sourcetree
pbuild
::
make_all
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment