Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
include ${PETSC_DIR}/conf/ruleschkslepc_dir:@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"`;\hasslepc=`echo $${mypwd} | sed "s+slepc-+DUMMY+g"`;\if [ $${mypwd} = $${newpwd} -a $${hasslepc} != $${mypwd} ]; then \echo "*********************Warning*************************" ; \echo "Your SLEPC_DIR may not match the directory you are in";\echo "SLEPC_DIR " $${true_SLEPC_DIR} "Current directory" $${mypwd};\echo "******************************************************" ; \fislepc_manualpages:-@if [ "${MANSEC}" != "" ] ; then \DOCTEXT_PATH=${PETSC_DIR}/src/docs/tex/doctext; export DOCTEXT_PATH; \${DOCTEXT} -html \-mpath ${LOC}/docs/manualpages/${MANSEC} -heading SLEPc \-defn ${SLEPC_DIR}/src/docs/tex/doctext/html.def \-locdir ${LOCDIR} -mapref ${LOC}/docs/manualpages/manualpages.cit \${SOURCEC} ${SOURCEH}; \chmod -f g+w ${LOC}/docs/manualpages/${MANSEC}/* ; fislepc_html:-@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-@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`; \${MKDIR} -p $${loc} ;\for i in ${SOURCEC} ${SOURCEF} ${SOURCEH} ${EXAMPLESC} ${EXAMPLESF} ${EXAMPLESCH} ${EXAMPLESFH} ${EXAMPLESMATLAB} foo ; do\if [ -f $$i ]; then \iroot=`echo $$i | sed -e "s?[a-z.]*/??g"`;\IROOT=`echo $${i} | sed -e s?[.][.]??g` ;\if [ "$${IROOT}" != "$${i}" ] ; then \IROOT=".."; \else \IROOT=$${ROOT};\fi;\${RM} $${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" \-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 )' | \${MAPNAMES} -map /tmp/$$USER.htmlmap -inhtml | sed -e s?ROOT?$${IROOT}?g >> $${loc}/$$i.html ; \fi; \done-@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; \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-@loc=`pwd | sed -e s?\$${PETSC_DIR}?$${LOC}/?g -e s?/disks??g`;\if [ "${EXAMPLESC}" != "" ] ; then \for file in ${EXAMPLESC} foo ; do \if [ -f $$file ]; then \cmess=`grep "static char help" $${file} | cut -d\" -f2 | cut -d\. -f1`; \echo "<a href=\"$${file}.html\">$${file}: $${cmess}</a><br>" >> $${loc}/index.html;\fi; \done ;\else \for file in ${DIRS} foo; do \if [ -d $$file ]; then \echo "<a href=\"$${file}/\">$${file}/</a><br>" >> $${loc}/index.html; \fi; \done; \echo " " >> $${loc}/index.html; \for file in ${SOURCEH} ${SOURCEC} ${SOURCEF} foo ; do \if [ -f $$file ]; then \echo "<a href=\"$${file}.html\">$${file}</a><br>" >> $${loc}/index.html; \fi; \done; \fi ;\echo " " >> $${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`; \cat makefile | ${C2HTML} | ${MAPNAMES} -map /tmp/$$USER.htmlmap -inhtml > $${loc}/makefile.html-@${RM} /tmp/$$USER.htmlmap tmpslepctree: ${ACTION}-@for dir in ${DIRS} ftn-auto ftn-custom f90-custom; do \if [ -d $$dir ]; then \r=`grep -w requirespackage $$dir/makefile`; \if [ "$$?" = 0 ]; then \PKGFLG=`echo $$r | cut -d \' -f2`;\grep -w "#define $${PKGFLG}" ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h > /dev/null; \if [ "$$?" = 1 ]; then \if [ "${PCONF}" != "" ]; then \echo ${PCONF} | sed s/-D//g | grep -w "$${PKGFLG}" > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \else \continue; \fi; \fi; \fi; \r=`grep -w requiresfunction $$dir/makefile`; \if [ "$$?" = 0 ]; then \PKGFLG=`echo $$r | cut -d \' -f2`;\grep -w "#define $${PKGFLG}" ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h > /dev/null; \if [ "$$?" = 1 ]; then \if [ "${PCONF}" != "" ]; then \echo ${PCONF} | sed s/-D//g | grep -w "$${PKGFLG}" > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \else \continue; \fi; \fi; \fi; \r=`grep -w requiresdefine $$dir/makefile`; \if [ "$$?" = 0 ]; then \PKGFLG=`echo $$r | cut -d \' -f2`;\grep -w "#define $${PKGFLG}" ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h > /dev/null; \if [ "$$?" = 1 ]; then \if [ "${PCONF}" != "" ]; then \echo ${PCONF} | sed s/-D//g | grep -w "$${PKGFLG}" > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \else \continue; \fi; \fi; \grep -w "#define $${PKGFLG}" ${SLEPC_DIR}/${PETSC_ARCH}/include/slepcconf.h > /dev/null; \if [ "$$?" = 1 ]; then \if [ "${PCONF}" != "" ]; then \echo ${PCONF} | sed s/-D//g | grep -w "$${PKGFLG}" > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \else \continue; \fi; \fi; \fi; \r=`grep -w requireslanguage $$dir/makefile`; \if [ "$$?" = 0 ]; then \echo $$r | grep -w ${PETSC_LANGUAGE} > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \fi; \r=`grep -w requiresscalar $$dir/makefile`; \if [ "$$?" = 0 ]; then \echo $$r | grep -w ${PETSC_SCALAR} > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \fi; \r=`grep -w requiresprecision $$dir/makefile`; \if [ "$$?" = 0 ]; then \echo $$r | grep -w ${PETSC_PRECISION} > /dev/null; \if [ "$$?" = 1 ]; then \continue; \fi; \fi; \else \continue; \fi; \(cd $$dir ; \echo ${ACTION} in: `pwd`; \${OMAKE} tree ACTION=${ACTION} PETSC_ARCH=${PETSC_ARCH} LOC=${LOC} DATAFILESPATH=${DATAFILESPATH} BASE_DIR=${BASE_DIR});\doneinclude ${SLEPC_DIR}/${PETSC_ARCH}/conf/slepcrules