| Line | |
|---|
| 1 | # SUBDIRS_pm_name are the names that @ pm_name @ can take in SUBDIRS |
|---|
| 2 | # (except for util, which is included so that simplemake will process |
|---|
| 3 | # the Makefile.sm in that directory) |
|---|
| 4 | SUBDIRS_pm_name = mpd smpd gforker remshell |
|---|
| 5 | SUBDIRS = @pm_name@ @other_pm_names@ . |
|---|
| 6 | # Remove PMPILIBNAME from the common make variables for the mpid |
|---|
| 7 | # directories |
|---|
| 8 | smvarSubdir_commonmake=MPILIBNAME = @MPILIBNAME@ |
|---|
| 9 | OTHER_DIRS = util |
|---|
| 10 | NOTSIMPLEMAKE_SUBDIRS = mpd hydra |
|---|
| 11 | |
|---|
| 12 | # We need to handle the case where the process manager is external to |
|---|
| 13 | # MPICH2 |
|---|
| 14 | all-postamble: |
|---|
| 15 | if [ -n "@pm_name@" -a -d "@pm_name@" ] ; then \ |
|---|
| 16 | build_prefix=`cd ../.. && pwd` && cd @pm_name@ && \ |
|---|
| 17 | ${MAKE} prefix=$$build_prefix exec_prefix=$$build_prefix bindir=$$build_prefix/bin mpich2-build-install ; \ |
|---|
| 18 | fi |
|---|
| 19 | |
|---|
| 20 | # Add util to distclean if possible |
|---|
| 21 | distclean-local: |
|---|
| 22 | if [ -n "@pm_name@" -a -d "@pm_name@" ] ; then \ |
|---|
| 23 | build_prefix=`cd ../.. && pwd` && cd @pm_name@ && \ |
|---|
| 24 | ${MAKE} prefix=$$build_prefix exec_prefix=$$build_prefix bindir=$$build_prefix/bin mpich2-build-uninstall ; \ |
|---|
| 25 | fi |
|---|
| 26 | if [ -s util/Makefile ] ; then (cd util && ${MAKE} distclean) ; fi |
|---|