root/mpich2/branches/dev/kumudb/src/pm/Makefile.sm @ 4870

Revision 4870, 1.1 KB (checked in by kumudb, 5 months ago)

Merge from trunk to kumudb r4748:r4869

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)
4SUBDIRS_pm_name = mpd smpd gforker remshell
5SUBDIRS = @pm_name@ @other_pm_names@ .
6# Remove PMPILIBNAME from the common make variables for the mpid
7# directories
8smvarSubdir_commonmake=MPILIBNAME      = @MPILIBNAME@
9OTHER_DIRS = util
10NOTSIMPLEMAKE_SUBDIRS = mpd hydra
11
12# We need to handle the case where the process manager is external to
13# MPICH2
14all-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
21distclean-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
Note: See TracBrowser for help on using the browser.