Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2395 | Rev 2477 |
|---|---|
include ${PETSC_DIR}/conf/rules |
include ${PETSC_DIR}/conf/rules |
chkslepc_dir: |
chkslepc_dir: |
@mypwd=`pwd`; cd ${SLEPC_DIR} 2>&1 > /dev/null; true_SLEPC_DIR=`pwd`; cd $${mypwd} 2>&1 >/dev/null; \ |
@mypwd=`pwd`; cd ${SLEPC_DIR} 2>&1 > /dev/null; true_SLEPC_DIR=`pwd`; cd $${mypwd} 2>&1 >/dev/null; \ |
newpwd=`echo $${mypwd} | sed "s+$${true_SLEPC_DIR}+DUMMY+g"`;\ |
newpwd=`echo $${mypwd} | sed "s+$${true_SLEPC_DIR}+DUMMY+g"`;\ |
hasslepc=`echo $${mypwd} | sed "s+slepc-+DUMMY+g"`;\ |
hasslepc=`echo $${mypwd} | sed "s+slepc-+DUMMY+g"`;\ |
if [ $${mypwd} = $${newpwd} -a $${hasslepc} != $${mypwd} ]; then \ |
if [ $${mypwd} = $${newpwd} -a $${hasslepc} != $${mypwd} ]; then \ |
echo "*********************Warning*************************" ; \ |
echo "*********************Warning*************************" ; \ |
echo "Your SLEPC_DIR may not match the directory you are in";\ |
echo "Your SLEPC_DIR may not match the directory you are in";\ |
echo "SLEPC_DIR " $${true_SLEPC_DIR} "Current directory" $${mypwd};\ |
echo "SLEPC_DIR " $${true_SLEPC_DIR} "Current directory" $${mypwd};\ |
echo "******************************************************" ; \ |
echo "******************************************************" ; \ |
fi |
fi |
slepc_manualpages: |
slepc_manualpages: |
-@if [ "${MANSEC}" != "" ] ; then \ |
-@if [ "${MANSEC}" != "" ] ; then \ |
DOCTEXT_PATH=${PETSC_DIR}/src/docs/tex/doctext; export DOCTEXT_PATH; \ |
DOCTEXT_PATH=${PETSC_DIR}/src/docs/tex/doctext; export DOCTEXT_PATH; \ |
${DOCTEXT} -html \ |
${DOCTEXT} -html \ |
-mpath ${LOC}/docs/manualpages/${MANSEC} -heading SLEPc \ |
-mpath ${LOC}/docs/manualpages/${MANSEC} -heading SLEPc \ |
-defn ${SLEPC_DIR}/src/docs/tex/doctext/html.def \ |
-defn ${SLEPC_DIR}/src/docs/tex/doctext/html.def \ |
-locdir ${LOCDIR} -mapref ${LOC}/docs/manualpages/manualpages.cit \ |
-locdir ${LOCDIR} -mapref ${LOC}/docs/manualpages/manualpages.cit \ |
${SOURCEC} ${SOURCEH}; \ |
${SOURCEC} ${SOURCEH}; \ |
chmod -f g+w ${LOC}/docs/manualpages/${MANSEC}/* ; fi |
chmod -f g+w ${LOC}/docs/manualpages/${MANSEC}/* ; fi |
slepc_html: |
slepc_html: |
-@sed -e s?man+../?man+ROOT/docs/manualpages/? ${LOC}/docs/manualpages/manualpages.cit > /tmp/$$USER.htmlmap |
-@sed -e s?man+../?man+ROOT/docs/manualpages/? ${LOC}/docs/manualpages/manualpages.cit > /tmp/$$USER.htmlmap |
-@cat ${PETSC_DIR}/src/docs/mpi.www.index >> /tmp/$$USER.htmlmap |
-@cat ${PETSC_DIR}/src/docs/mpi.www.index >> /tmp/$$USER.htmlmap |
-@ROOT=`echo ${LOCDIR} | sed -e s?/[a-z]*?/..?g -e s?src/??g -e s?include/??g` ;\ |
-@ROOT=`echo ${LOCDIR} | sed -e s?/[a-z]*?/..?g -e s?src/??g -e s?include/??g` ;\ |
loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`; \ |
loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`; \ |
${MKDIR} -p $${loc} ;\ |
${MKDIR} -p $${loc} ;\ |
for i in ${SOURCEC} ${SOURCEF} ${SOURCEH} ${EXAMPLESC} ${EXAMPLESF} ${EXAMPLESCH} ${EXAMPLESFH} ${EXAMPLESMATLAB} foo ; do\ |
for i in ${SOURCEC} ${SOURCEF} ${SOURCEH} ${EXAMPLESC} ${EXAMPLESF} ${EXAMPLESCH} ${EXAMPLESFH} ${EXAMPLESMATLAB} foo ; do\ |
if [ -f $$i ]; then \ |
if [ -f $$i ]; then \ |
iroot=`echo $$i | sed -e "s?[a-z.]*/??g"`;\ |
iroot=`echo $$i | sed -e "s?[a-z.]*/??g"`;\ |
IROOT=`echo $${i} | sed -e s?[.][.]??g` ;\ |
IROOT=`echo $${i} | sed -e s?[.][.]??g` ;\ |
if [ "$${IROOT}" != "$${i}" ] ; then \ |
if [ "$${IROOT}" != "$${i}" ] ; then \ |
IROOT=".."; \ |
IROOT=".."; \ |
else \ |
else \ |
IROOT=$${ROOT};\ |
IROOT=$${ROOT};\ |
fi;\ |
fi;\ |
${RM} $${loc}/$$i.html; \ |
${RM} $${loc}/$$i.html; \ |
echo "<center><a href=\"$${iroot}\">Actual source code: $${iroot}</a></center><br>" > $${loc}/$$i.html; \ |
echo "<center><a href=\"$${iroot}\">Actual source code: $${iroot}</a></center><br>" > $${loc}/$$i.html; \ |
sed -e "s/CHKERRQ(ierr);//g" -e "s/PetscFunctionReturn(0)/return(0)/g" \ |
sed -e "s/CHKERRQ(ierr);//g" -e "s/PetscFunctionReturn(0)/return(0)/g" \ |
-e "s/ierr [ ]*= //g" $$i | ${C2HTML} -n | ${PETSC_DIR}/bin/maint/fixinclude $$i $${ROOT} | \ |
-e "s/ierr [ ]*= //g" $$i | ${C2HTML} -n | ${PETSC_DIR}/bin/maint/fixinclude $$i $${ROOT} | \ |
egrep -v '(PetscValid|PetscFunctionBegin|PetscCheck|PetscErrorCode ierr;|#if !defined\(__|#define __|#undef __|EXTERN_C|extern )' | \ |
egrep -v '(PetscValid|PetscFunctionBegin|PetscCheck|PetscErrorCode ierr;|#if !defined\(__|#define __|#undef __|EXTERN_C|extern )' | \ |
${MAPNAMES} -map /tmp/$$USER.htmlmap -inhtml | sed -e s?ROOT?$${IROOT}?g >> $${loc}/$$i.html ; \ |
${MAPNAMES} -map /tmp/$$USER.htmlmap -inhtml | sed -e s?ROOT?$${IROOT}?g >> $${loc}/$$i.html ; \ |
fi; \ |
fi; \ |
done |
done |
-@ROOT=`echo ${LOCDIR} | sed -e s?/[a-z]*?/..?g -e s?src/??g -e s?include/??g` ;\ |
-@ROOT=`echo ${LOCDIR} | sed -e s?/[a-z]*?/..?g -e s?src/??g -e s?include/??g` ;\ |
loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`; ${RM} $${loc}/index.html; \ |
loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`; ${RM} $${loc}/index.html; \ |
cat ${SLEPC_DIR}/src/docs/manualpages-sec/header_${MANSEC} | sed -e "s?<A HREF=\"PETSC_DIR[a-z/]*\">Examples</A>?<A HREF=\"$${ROOT}/docs/manualpages/${MANSEC}\">Manual pages</A>?g" -e "s?PETSC_DIR?$${ROOT}/?g"> $${loc}/index.html; \ |
cat ${SLEPC_DIR}/src/docs/manualpages-sec/header_${MANSEC} | sed -e "s?<A HREF=\"PETSC_DIR[a-z/]*\">Examples</A>?<A HREF=\"$${ROOT}/docs/manualpages/${MANSEC}\">Manual pages</A>?g" -e "s?PETSC_DIR?$${ROOT}/?g"> $${loc}/index.html; \ |
echo "<p>" >> $${loc}/index.html |
echo "<p>" >> $${loc}/index.html |
-@loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`;\ |
-@loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`;\ |
if [ "${EXAMPLESC}" != "" ] ; then \ |
if [ "${EXAMPLESC}" != "" ] ; then \ |
for file in ${EXAMPLESC} foo ; do \ |
for file in ${EXAMPLESC} foo ; do \ |
if [ -f $$file ]; then \ |
if [ -f $$file ]; then \ |
cmess=`grep "static char help" $${file} | cut -d\" -f2 | cut -d\. -f1`; \ |
cmess=`grep "static char help" $${file} | cut -d\" -f2 | cut -d\. -f1`; \ |
echo "<a href=\"$${file}.html\">$${file}: $${cmess}</a><br>" >> $${loc}/index.html;\ |
echo "<a href=\"$${file}.html\">$${file}: $${cmess}</a><br>" >> $${loc}/index.html;\ |
fi; \ |
fi; \ |
done ;\ |
done ;\ |
else \ |
else \ |
for file in ${DIRS} foo; do \ |
for file in ${DIRS} foo; do \ |
if [ -d $$file ]; then \ |
if [ -d $$file ]; then \ |
echo "<a href=\"$${file}/\">$${file}/</a><br>" >> $${loc}/index.html; \ |
echo "<a href=\"$${file}/\">$${file}/</a><br>" >> $${loc}/index.html; \ |
fi; \ |
fi; \ |
done; \ |
done; \ |
echo " " >> $${loc}/index.html; \ |
echo " " >> $${loc}/index.html; \ |
for file in ${SOURCEH} ${SOURCEC} ${SOURCEF} foo ; do \ |
for file in ${SOURCEH} ${SOURCEC} ${SOURCEF} foo ; do \ |
if [ -f $$file ]; then \ |
if [ -f $$file ]; then \ |
echo "<a href=\"$${file}.html\">$${file}</a><br>" >> $${loc}/index.html; \ |
echo "<a href=\"$${file}.html\">$${file}</a><br>" >> $${loc}/index.html; \ |
fi; \ |
fi; \ |
done; \ |
done; \ |
fi ;\ |
fi ;\ |
echo " " >> $${loc}/index.html; \ |
echo " " >> $${loc}/index.html; \ |
echo "<a href=\"makefile.html\">makefile</a><br>" >> $${loc}/index.html |
echo "<a href=\"makefile.html\">makefile</a><br>" >> $${loc}/index.html |
-@loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`; \ |
-@loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`; \ |
cat makefile | ${C2HTML} | ${MAPNAMES} -map /tmp/$$USER.htmlmap -inhtml > $${loc}/makefile.html |
cat makefile | ${C2HTML} | ${MAPNAMES} -map /tmp/$$USER.htmlmap -inhtml > $${loc}/makefile.html |
-@${RM} /tmp/$$USER.htmlmap tmp |
-@${RM} /tmp/$$USER.htmlmap tmp |
slepctree: ${ACTION} |
slepctree: ${ACTION} |
-@for dir in ${DIRS} ftn-auto ftn-custom f90-custom; do \ |
-@for dir in ${DIRS} ftn-auto ftn-custom f90-custom; do \ |
if [ -d $$dir ]; then \ |
if [ -d $$dir ]; then \ |
if [ "${PETSC_ARCH}" = "arch-installed-petsc" ]; then \ |
if [ "${PETSC_ARCH}" = "arch-installed-petsc" ]; then \ |
PETSCCONF="${PETSC_DIR}/include/petscconf.h" ; \ |
PETSCCONF="${PETSC_DIR}/include/petscconf.h" ; \ |
else \ |
else \ |
PETSCCONF="${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h" ; \ |
PETSCCONF="${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h" ; \ |
fi; \ |
fi; \ |
r=`grep -w requirespackage $$dir/makefile`; \ |
r=`grep -w requirespackage $$dir/makefile`; \ |
if [ "$$?" = 0 ]; then \ |
if [ "$$?" = 0 ]; then \ |
PKGFLG=`echo $$r | cut -d \' -f2`;\ |
PKGFLG=`echo $$r | cut -d \' -f2`;\ |
grep -w "#define $${PKGFLG}" $${PETSCCONF} > /dev/null; \ |
grep -w "#define $${PKGFLG}" $${PETSCCONF} > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
r=`grep -w requiresfunction $$dir/makefile`; \ |
r=`grep -w requiresfunction $$dir/makefile`; \ |
if [ "$$?" = 0 ]; then \ |
if [ "$$?" = 0 ]; then \ |
PKGFLG=`echo $$r | cut -d \' -f2`;\ |
PKGFLG=`echo $$r | cut -d \' -f2`;\ |
grep -w "#define $${PKGFLG}" $${PETSCCONF} > /dev/null; \ |
grep -w "#define $${PKGFLG}" $${PETSCCONF} > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
r=`grep -w requiresdefine $$dir/makefile`; \ |
r=`grep -w requiresdefine $$dir/makefile`; \ |
if [ "$$?" = 0 ]; then \ |
if [ "$$?" = 0 ]; then \ |
PKGFLG=`echo $$r | cut -d \' -f2`;\ |
PKGFLG=`echo $$r | cut -d \' -f2`;\ |
grep -w "#define $${PKGFLG}" ${SLEPC_DIR}/${PETSC_ARCH}/include/slepcconf.h > /dev/null; \ |
grep -w "#define $${PKGFLG}" ${SLEPC_DIR}/${PETSC_ARCH}/include/slepcconf.h > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
grep -w "#define $${PKGFLG}" $${PETSCCONF} > /dev/null; \ |
grep -w "#define $${PKGFLG}" $${PETSCCONF} > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
r=`grep -w requireslanguage $$dir/makefile`; \ |
r=`grep -w requireslanguage $$dir/makefile`; \ |
if [ "$$?" = 0 ]; then \ |
if [ "$$?" = 0 ]; then \ |
echo $$r | grep -w ${PETSC_LANGUAGE} > /dev/null; \ |
echo $$r | grep -w ${PETSC_LANGUAGE} > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
r=`grep -w requiresscalar $$dir/makefile`; \ |
r=`grep -w requiresscalar $$dir/makefile`; \ |
if [ "$$?" = 0 ]; then \ |
if [ "$$?" = 0 ]; then \ |
echo $$r | grep -w ${PETSC_SCALAR} > /dev/null; \ |
echo $$r | grep -w ${PETSC_SCALAR} > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
r=`grep -w requiresprecision $$dir/makefile`; \ |
r=`grep -w requiresprecision $$dir/makefile`; \ |
if [ "$$?" = 0 ]; then \ |
if [ "$$?" = 0 ]; then \ |
echo $$r | grep -w ${PETSC_PRECISION} > /dev/null; \ |
echo $$r | grep -w ${PETSC_PRECISION} > /dev/null; \ |
if [ "$$?" = 1 ]; then \ |
if [ "$$?" = 1 ]; then \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
fi; \ |
fi; \ |
else \ |
else \ |
continue; \ |
continue; \ |
fi; \ |
fi; \ |
(cd $$dir ; \ |
(cd $$dir ; \ |
echo ${ACTION} in: `pwd`; \ |
echo ${ACTION} in: `pwd`; \ |
${OMAKE} slepctree ACTION=${ACTION} PETSC_ARCH=${PETSC_ARCH} LOC=${LOC} DATAFILESPATH=${DATAFILESPATH} BASE_DIR=${BASE_DIR});\ |
${OMAKE} slepctree ACTION=${ACTION} PETSC_ARCH=${PETSC_ARCH} LOC=${LOC} DATAFILESPATH=${DATAFILESPATH} BASE_DIR=${BASE_DIR});\ |
done |
done |
# uses the cmake infrastructure to build/rebuild the libraries |
|
slepc_cmake: |
|
make -j ${MAKE_NP} -C ${SLEPC_DIR}/${PETSC_ARCH} |
|
include ${SLEPC_DIR}/${PETSC_ARCH}/conf/slepcrules |
|