173f4d377SMatthew Knepley# $Id: makefile,v 1.353 2001/08/28 19:43:38 balay Exp $ 211b6ed10SLois Curfman McInnes# 3cfd69a58SBarry Smith# This is the makefile for installing PETSc. See the file 47fc3c18eSBarry Smith# docs/installation.html for directions on installing PETSc. 5cfd69a58SBarry Smith# See also bmake/common for additional commands. 611b6ed10SLois Curfman McInnes# 7716b9c40SSatish BalayALL: all 848b2c0e9SBarry SmithLOCDIR = . 9b16a3bb1SBarry SmithDIRS = src include docs 10ca5c9d59SMatthew Knepley# 11ca5c9d59SMatthew Knepley# Configuration Variables 12ca5c9d59SMatthew Knepley# 13ca5c9d59SMatthew Knepley# Read configure options from a file if CONFIGURE_OPTIONSis not defined 14ca5c9d59SMatthew KnepleyCONFIGURE_OPTIONS_FILE = ./config/configure_options 15ca5c9d59SMatthew KnepleyCONFIGURE_OPTIONS = $(shell cat $(CONFIGURE_OPTIONS_FILE)) 16ca5c9d59SMatthew KnepleyCONFIGURE_LOG_FILE = configure_petsc.log 17ca5c9d59SMatthew KnepleyAUTOMAKE_ADD_FILES = config/config.guess config/config.sub config/install-sh config/missing config/mkinstalldirs \ 18ca5c9d59SMatthew Knepley config/ltconfig config/ltmain.sh 1961523587SBarry Smith 20516d1546SSatish Balayinclude ${PETSC_DIR}/bmake/common/base 21516d1546SSatish Balayinclude ${PETSC_DIR}/bmake/common/test 2261523587SBarry Smith 23ca5c9d59SMatthew Knepley# 24ca5c9d59SMatthew Knepley# Configuration Targets 25ca5c9d59SMatthew Knepley# 26ca5c9d59SMatthew Knepleyaclocal.m4: configure.in 27ca5c9d59SMatthew Knepley @echo "Making $@" >> $(CONFIGURE_LOG_FILE) 28ca5c9d59SMatthew Knepley @echo "----------------------------------------" >> $(CONFIGURE_LOG_FILE) 29ca5c9d59SMatthew Knepley @aclocal >> $(CONFIGURE_LOG_FILE) 30c83b6f97SSatish Balay 31ca5c9d59SMatthew Knepleybmake/config/petscconf.h.in: config/acconfig.h config/acsite.m4 configure.in 32ca5c9d59SMatthew Knepley @echo "Making $@" >> $(CONFIGURE_LOG_FILE) 33ca5c9d59SMatthew Knepley @echo "----------------------------------------" >> $(CONFIGURE_LOG_FILE) 34ca5c9d59SMatthew Knepley @autoheader -l config >> $(CONFIGURE_LOG_FILE) 35c83b6f97SSatish Balay 36ca5c9d59SMatthew Knepley$(AUTOMAKE_ADD_FILES): 37ca5c9d59SMatthew Knepley @echo "Making $@" >> $(CONFIGURE_LOG_FILE) 38ca5c9d59SMatthew Knepley @echo "----------------------------------------" >> $(CONFIGURE_LOG_FILE) 39ca5c9d59SMatthew Knepley @automake --foreign --add-missing Makefile >> $(CONFIGURE_LOG_FILE) 40ca5c9d59SMatthew Knepley 41ca5c9d59SMatthew KnepleyMakefile.am: $(AUTOMAKE_ADD_FILES) 42ca5c9d59SMatthew Knepley 43ca5c9d59SMatthew KnepleyMakefile.in: Makefile.am 44ca5c9d59SMatthew Knepley @echo "Making $@" >> $(CONFIGURE_LOG_FILE) 45ca5c9d59SMatthew Knepley @echo "----------------------------------------" >> $(CONFIGURE_LOG_FILE) 46ca5c9d59SMatthew Knepley @automake --foreign Makefile >> $(CONFIGURE_LOG_FILE) 47ca5c9d59SMatthew Knepley 48ca5c9d59SMatthew Knepleyconfigure: configure.in config/acsite.m4 aclocal.m4 bmake/config/petscconf.h.in $(AUTOMAKE_ADD_FILES) 49ca5c9d59SMatthew Knepley @echo "Making $@" >> $(CONFIGURE_LOG_FILE) 50ca5c9d59SMatthew Knepley @echo "----------------------------------------" >> $(CONFIGURE_LOG_FILE) 51ca5c9d59SMatthew Knepley @autoconf -l config >> $(CONFIGURE_LOG_FILE) 52ca5c9d59SMatthew Knepley 53ca5c9d59SMatthew Knepleystart_configure: 54ca5c9d59SMatthew Knepley -@$(RM) $(CONFIGURE_LOG_FILE) 55ca5c9d59SMatthew Knepley 56ca5c9d59SMatthew Knepleyconfigure_petsc: start_configure configure Makefile.in 57ca5c9d59SMatthew Knepley @echo "Configuring Petsc with options:" >> $(CONFIGURE_LOG_FILE) 58ca5c9d59SMatthew Knepley @echo "$(CONFIGURE_OPTIONS)" >> $(CONFIGURE_LOG_FILE) 59ca5c9d59SMatthew Knepley @echo "----------------------------------------" >> $(CONFIGURE_LOG_FILE) 60ca5c9d59SMatthew Knepley @echo "$(CONFIGURE_OPTIONS)" > $(CONFIGURE_OPTIONS_FILE) 61ca5c9d59SMatthew Knepley @./configure $(CONFIGURE_OPTIONS) >> $(CONFIGURE_LOG_FILE) 62ca5c9d59SMatthew Knepley 63ca5c9d59SMatthew Knepley$(CONFIGURE_LOG_FILE): $(CONFIGURE_OPTIONS_FILE) 64116b6c34SMatthew Knepley $(MAKE) configure_petsc 65ca5c9d59SMatthew Knepley 66ca5c9d59SMatthew Knepleyconfigure_clean: 67ca5c9d59SMatthew Knepley -@$(RM) aclocal.m4 68ca5c9d59SMatthew Knepley -@$(RM) bmake/config/petscconf.h.in 69ca5c9d59SMatthew Knepley -@$(RM) $(AUTOMAKE_ADD_FILES) Makefile.in 70ca5c9d59SMatthew Knepley -@$(RM) configure 713677444aSSatish Balay# 723677444aSSatish Balay# Basic targets to build PETSc libraries. 73fa527775SLois Curfman McInnes# all : builds the c, fortran, and f90 libraries 74116b6c34SMatthew Knepleyall : $(CONFIGURE_LOG_FILE) nall 75ca5c9d59SMatthew Knepleyall_lt : $(CONFIGURE_LOG_FILE) chk_petsc_dir info info_h chklib_dir deletelibs build_lt shared 76116b6c34SMatthew Knepleynall : chk_petsc_dir info info_h chklib_dir deletelibs build shared 77efd74e9bSBarry Smith# 78fa527775SLois Curfman McInnes# Prints information about the system and version of PETSc being compiled 79efd74e9bSBarry Smith# 80efd74e9bSBarry Smithinfo: 81efd74e9bSBarry Smith -@echo "==========================================" 8211b6dc0cSBarry Smith -@echo " " 83d76296fbSBarry Smith -@echo "See docs/troubleshooting.html and docs/bugreporting.html" 84d76296fbSBarry Smith -@echo "for help with installation problems. Please send EVERYTHING" 85d76296fbSBarry Smith -@echo "printed out below when reporting problems" 8611b6dc0cSBarry Smith -@echo " " 8711b6dc0cSBarry Smith -@echo "To subscribe to the PETSc users mailing list, send mail to " 8811b6dc0cSBarry Smith -@echo "majordomo@mcs.anl.gov with the message: " 8911b6dc0cSBarry Smith -@echo "subscribe petsc-users" 9011b6dc0cSBarry Smith -@echo " " 91d76296fbSBarry Smith -@echo "==========================================" 921d91fb6eSBarry Smith -@echo On `date` on `hostname` 9330fdcc7aSBarry Smith -@echo Machine characteristics: `uname -a` 94efd74e9bSBarry Smith -@echo "-----------------------------------------" 9567b024f7SSatish Balay -@echo "Using C compiler: ${CC} ${COPTFLAGS} ${CCPPFLAGS}" 96c20d8eedSBarry Smith -@if [ -n "${C_CCV}" -a "${C_CCV}" != "unknown" ] ; then \ 97ec289e47SSatish Balay echo "C Compiler version:" ; ${C_CCV} ; fi ; true 98c20d8eedSBarry Smith -@if [ -n "${CXX_CCV}" -a "${CXX_CCV}" != "unknown" ] ; then \ 99ec289e47SSatish Balay echo "C++ Compiler version:" ; ${CXX_CCV} ; fi; true 10067b024f7SSatish Balay -@echo "Using Fortran compiler: ${FC} ${FOPTFLAGS} ${FCPPFLAGS}" 10188b81347SBarry Smith -@if [ -n "${C_FCV}" -a "${C_FCV}" != "unknown" ] ; then \ 102ec289e47SSatish Balay echo "Fortran Compiler version:" ; ${C_FCV} ; fi; true 10347794344SBarry Smith -@echo "-----------------------------------------" 104f209c26bSSatish Balay -@grep PETSC_VERSION_NUMBER ${PETSC_DIR}/include/petscversion.h | ${SED} "s/........//" 105f265ae5cSBarry Smith -@echo "-----------------------------------------" 106d77bb2e1SSatish Balay -@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}" 10747794344SBarry Smith -@echo "-----------------------------------------" 108e0e703c1SSatish Balay -@echo "Using configuration flags:" 109f209c26bSSatish Balay -@grep "define " ${PETSC_DIR}/bmake/${PETSC_ARCH}/petscconf.h 11047794344SBarry Smith -@echo "-----------------------------------------" 111d77bb2e1SSatish Balay -@echo "Using include paths: ${PETSC_INCLUDE}" 11247794344SBarry Smith -@echo "-----------------------------------------" 113d77bb2e1SSatish Balay -@echo "Using PETSc directory: ${PETSC_DIR}" 114d77bb2e1SSatish Balay -@echo "Using PETSc arch: ${PETSC_ARCH}" 115efd74e9bSBarry Smith -@echo "------------------------------------------" 116d77bb2e1SSatish Balay -@echo "Using C linker: ${CLINKER}" 117d77bb2e1SSatish Balay -@echo "Using Fortran linker: ${FLINKER}" 118f2b01315SBarry Smith -@echo "Using libraries: ${PETSC_LIB}" 119efd74e9bSBarry Smith -@echo "==========================================" 120b8d81f61SBarry Smith# 121b8d81f61SBarry Smith# 122b8d81f61SBarry SmithMINFO = ${PETSC_DIR}/bmake/${PETSC_ARCH}/petscmachineinfo.h 123b8d81f61SBarry Smithinfo_h: 124ddbfe947SBarry Smith -@$(RM) -f MINFO ${MINFO} 125c5e9c7dfSBarry Smith -@echo "static char *petscmachineinfo = \" " >> MINFO 12634a92de5SBarry Smith -@echo "Libraries compiled on `date` on `hostname` " >> MINFO 127c5e9c7dfSBarry Smith -@echo Machine characteristics: `uname -a` "" >> MINFO 128f6a9982fSBarry Smith -@echo "Using PETSc directory: ${PETSC_DIR}" >> MINFO 129f6a9982fSBarry Smith -@echo "Using PETSc arch: ${PETSC_ARCH}" >> MINFO 13093520af8SSatish Balay -@echo "-----------------------------------------\"; " >> MINFO 13193520af8SSatish Balay -@echo "static char *petsccompilerinfo = \" " >> MINFO 132c5e9c7dfSBarry Smith -@echo "Using C compiler: ${CC} ${COPTFLAGS} ${CCPPFLAGS} " >> MINFO 133b8d81f61SBarry Smith -@if [ "${C_CCV}" -a "${C_CCV}" != "unknown" ] ; then \ 134ec289e47SSatish Balay echo "C Compiler version:" >> MINFO ; ${C_CCV} >> MINFO 2>&1; fi ; true 135b8d81f61SBarry Smith -@if [ "${CXX_CCV}" -a "${CXX_CCV}" != "unknown" ] ; then \ 136ec289e47SSatish Balay echo "C++ Compiler version:" >> MINFO; ${CXX_CCV} >> MINFO 2>&1 ; fi ; true 137c5e9c7dfSBarry Smith -@echo "Using Fortran compiler: ${FC} ${FOPTFLAGS} ${FCPPFLAGS}" >> MINFO 138b8d81f61SBarry Smith -@if [ "${C_FCV}" -a "${C_FCV}" != "unknown" ] ; then \ 139ec289e47SSatish Balay echo "Fortran Compiler version:" >> MINFO ; ${C_FCV} >> MINFO 2>&1 ; fi ; true 14093520af8SSatish Balay -@echo "-----------------------------------------\"; " >> MINFO 14193520af8SSatish Balay -@echo "static char *petsccompilerflagsinfo = \" " >> MINFO 142c5e9c7dfSBarry Smith -@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}" >> MINFO 143c5e9c7dfSBarry Smith -@echo "-----------------------------------------" >> MINFO 144c5e9c7dfSBarry Smith -@echo "Using configuration flags:" >> MINFO 145c5e9c7dfSBarry Smith -@echo "-----------------------------------------" >> MINFO 146c5e9c7dfSBarry Smith -@echo "Using include paths: ${PETSC_INCLUDE}" >> MINFO 14793520af8SSatish Balay -@echo "------------------------------------------\"; " >> MINFO 14893520af8SSatish Balay -@echo "static char *petsclinkerinfo = \" " >> MINFO 149c5e9c7dfSBarry Smith -@echo "Using C linker: ${CLINKER}" >> MINFO 150c5e9c7dfSBarry Smith -@echo "Using Fortran linker: ${FLINKER}" >> MINFO 15193520af8SSatish Balay -@echo "Using libraries: ${PETSC_LIB} \"; " >> MINFO 15293520af8SSatish Balay -@cat MINFO | ${SED} -e 's/$$/ \\n\\/' | sed -e 's/\; \\n\\/\;/'> ${MINFO} 153a21fb8cbSBarry Smith -@chmod g+w ${MINFO} 1549c0905fcSSatish Balay -@$(RM) MINFO 1553677444aSSatish Balay# 156fa527775SLois Curfman McInnes# Builds the PETSc libraries 157fa527775SLois Curfman McInnes# This target also builds fortran77 and f90 interface 158f6a9982fSBarry Smith# files and compiles .F files 1593677444aSSatish Balay# 160f6a9982fSBarry Smithbuild: 161efd74e9bSBarry Smith -@echo "BEGINNING TO COMPILE LIBRARIES IN ALL DIRECTORIES" 16247794344SBarry Smith -@echo "=========================================" 16335d8aa7fSBarry Smith -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=libfast tree 164b87434adSSatish Balay ${RANLIB} ${PETSC_LIB_DIR}/*.a 165b87434adSSatish Balay -@chmod g+w ${PETSC_LIB_DIR}/*.a 1660b3634f8SBarry Smith -@echo "Completed building libraries" 16747794344SBarry Smith -@echo "=========================================" 16835ca7349SBarry Smith# 169a42cec9dSMatthew Knepley# Builds the PETSc libraries 170a42cec9dSMatthew Knepley# This target is the same as 'build', but uses the 'lib' target instead 171a42cec9dSMatthew Knepley# 172a42cec9dSMatthew Knepleybuild_lt: 173a42cec9dSMatthew Knepley -@echo "BEGINNING TO COMPILE LIBTOOL LIBRARIES IN ALL DIRECTORIES" 174a42cec9dSMatthew Knepley -@echo "=========================================" 175a42cec9dSMatthew Knepley -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=lib tree 176a42cec9dSMatthew Knepley -@echo "Completed building libraries" 177a42cec9dSMatthew Knepley -@echo "=========================================" 178a42cec9dSMatthew Knepley# 1793677444aSSatish Balay# Builds PETSc test examples for a given BOPT and architecture 1808744090aSBarry Smith# 1813677444aSSatish Balaytestexamples: info chkopts 1823677444aSSatish Balay -@echo "BEGINNING TO COMPILE AND RUN TEST EXAMPLES" 1833677444aSSatish Balay -@echo "Due to different numerical round-off on certain" 1843677444aSSatish Balay -@echo "machines some of the numbers may not match exactly." 1853677444aSSatish Balay -@echo "=========================================" 18635d8aa7fSBarry Smith -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=testexamples_1 tree 1873677444aSSatish Balay -@echo "Completed compiling and running test examples" 1883677444aSSatish Balay -@echo "=========================================" 1893677444aSSatish Balaytestfortran: info chkopts 1903677444aSSatish Balay -@echo "BEGINNING TO COMPILE AND RUN FORTRAN TEST EXAMPLES" 1913677444aSSatish Balay -@echo "=========================================" 1923677444aSSatish Balay -@echo "Due to different numerical round-off on certain" 1933677444aSSatish Balay -@echo "machines or the way Fortran formats numbers" 1943677444aSSatish Balay -@echo "some of the results may not match exactly." 1953677444aSSatish Balay -@echo "=========================================" 19635d8aa7fSBarry Smith -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=testexamples_3 tree 1973677444aSSatish Balay -@echo "Completed compiling and running Fortran test examples" 1983677444aSSatish Balay -@echo "=========================================" 19901c5c36fSSatish Balaytestexamples_uni: info chkopts 20001c5c36fSSatish Balay -@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES" 20101c5c36fSSatish Balay -@echo "Due to different numerical round-off on certain" 20201c5c36fSSatish Balay -@echo "machines some of the numbers may not match exactly." 20301c5c36fSSatish Balay -@echo "=========================================" 20435d8aa7fSBarry Smith -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=testexamples_4 tree 20501c5c36fSSatish Balay -@echo "Completed compiling and running uniprocessor test examples" 20601c5c36fSSatish Balay -@echo "=========================================" 2073677444aSSatish Balaytestfortran_uni: info chkopts 2083677444aSSatish Balay -@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR FORTRAN EXAMPLES" 2093677444aSSatish Balay -@echo "Due to different numerical round-off on certain" 2103677444aSSatish Balay -@echo "machines some of the numbers may not match exactly." 2113677444aSSatish Balay -@echo "=========================================" 21235d8aa7fSBarry Smith -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=testexamples_9 tree 2133677444aSSatish Balay -@echo "Completed compiling and running uniprocessor fortran test examples" 2143677444aSSatish Balay -@echo "=========================================" 215ad96cc0dSLois Curfman McInnes 216f3eacedaSSatish Balay# Ranlib on the libraries 2178c37ef55SBarry Smithranlib: 218b87434adSSatish Balay ${RANLIB} ${PETSC_LIB_DIR}/*.a 21961523587SBarry Smith 22011b6ed10SLois Curfman McInnes# Deletes PETSc libraries 221f3eacedaSSatish Balaydeletelibs: chkopts_basic 222b87434adSSatish Balay -${RM} -f ${PETSC_LIB_DIR}/* 223d44968ceSBarry Smith 224a42cec9dSMatthew Knepley# Cleans up build 225a42cec9dSMatthew Knepleyallclean: deletelibs 226a42cec9dSMatthew Knepley -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=clean tree 227a42cec9dSMatthew Knepley 228467fbd6dSBarry Smith# 229467fbd6dSBarry Smith# Updates your PETSc version to the latest set of patches 230467fbd6dSBarry Smith# 231467fbd6dSBarry Smithupdate: 232467fbd6dSBarry Smith -@bin/petscupdate 2333677444aSSatish Balay 2344918a6b0SSatish Balay# 2354918a6b0SSatish Balay# Check if PETSC_DIR variable specified is valid 2364918a6b0SSatish Balay# 2374918a6b0SSatish Balaychk_petsc_dir: 2384918a6b0SSatish Balay @if [ ! -f ${PETSC_DIR}/include/petscversion.h ]; then \ 2391390f061SBarry Smith echo "Incorrect PETSC_DIR specified: ${PETSC_DIR}!"; \ 2401390f061SBarry Smith echo "You need to use / to separate directories, not \\!"; \ 2411390f061SBarry Smith echo "Aborting build"; \ 2424918a6b0SSatish Balay false; fi 2434918a6b0SSatish Balay 2443677444aSSatish Balay# ------------------------------------------------------------------ 2453677444aSSatish Balay# 2463677444aSSatish Balay# All remaining actions are intended for PETSc developers only. 2473677444aSSatish Balay# PETSc users should not generally need to use these commands. 2483677444aSSatish Balay# 2493677444aSSatish Balay 25065783a8cSBarry Smith# To access the tags in EMACS, type M-x visit-tags-table and specify 25165783a8cSBarry Smith# the file petsc/TAGS. 25265783a8cSBarry Smith# 1) To move to where a PETSc function is defined, enter M-. and the 25365783a8cSBarry Smith# function name. 25465783a8cSBarry Smith# 2) To search for a string and move to the first occurrence, 25565783a8cSBarry Smith# use M-x tags-search and the string. 2567acb7333SLois Curfman McInnes# To locate later occurrences, use M-, 25711b6ed10SLois Curfman McInnes# Builds all etags files 25811b6ed10SLois Curfman McInnesalletags: 25901c05c5cSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags 26009f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_complete 26109f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_noexamples 26209f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_examples 26309f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSDIR=${PETSC_DIR} etags_makefiles 26411b6ed10SLois Curfman McInnes# Builds the basic etags file. This should be employed by most users. 26520563c6bSBarry Smithetags: 26609f7043eSSatish Balay -${RM} ${TAGSDIR}/TAGS 26709f7043eSSatish Balay -touch ${TAGSDIR}/TAGS 26809f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcec alltree 26941fa366cSBarry Smith -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcej alltree 27009f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourceh alltree 27109f7043eSSatish Balay -cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_sourcef alltree 27209f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesc alltree 27309f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesf alltree 27409f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesch alltree 27509f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_examplesfh alltree 27609f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS ACTION=etags_makefile alltree 27709f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS etags_bmakefiles 27855194d7eSSatish Balay -chmod g+w TAGS 27929cdf679SBarry Smith# Builds complete etags list; only for PETSc developers. 28029cdf679SBarry Smithetags_complete: 28109f7043eSSatish Balay -${RM} ${TAGSDIR}/TAGS_COMPLETE 28209f7043eSSatish Balay -touch ${TAGSDIR}/TAGS_COMPLETE 28309f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcec alltree 28441fa366cSBarry Smith -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcej alltree 28509f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourceh alltree 28609f7043eSSatish Balay -cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_sourcef alltree 28709f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesc alltree 28809f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesf alltree 28909f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesch alltree 29009f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_examplesfh alltree 29109f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_makefile alltree 29209f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE etags_bmakefiles 29309f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_docs alltree 29409f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_COMPLETE ACTION=etags_scripts alltree 29555194d7eSSatish Balay -chmod g+w TAGS_COMPLETE 29611b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories 297bfce26a3SBarry Smithetags_noexamples: 29809f7043eSSatish Balay -${RM} ${TAGSDIR}/TAGS_NO_EXAMPLES 29909f7043eSSatish Balay -touch ${TAGSDIR}/TAGS_NO_EXAMPLES 30009f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcec alltree 30141fa366cSBarry Smith -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcej alltree 30209f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourceh alltree 30309f7043eSSatish Balay -cd src/fortran; ${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_sourcef alltree 30409f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_makefile alltree 30509f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES etags_bmakefiles 30609f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_NO_EXAMPLES ACTION=etags_docs alltree 30755194d7eSSatish Balay -chmod g+w TAGS_NO_EXAMPLES 30811b6ed10SLois Curfman McInnes# Builds the etags file for makefiles 309b16a3bb1SBarry Smithetags_makefiles: 3107e0368d4SSatish Balay -${RM} ${TAGSDIR}/TAGS_MAKEFILES 3117e0368d4SSatish Balay -touch ${TAGSDIR}/TAGS_MAKEFILES 3127e0368d4SSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_MAKEFILES ACTION=etags_makefile alltree 3137e0368d4SSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_MAKEFILES etags_bmakefiles 3147e0368d4SSatish Balay -chmod g+w TAGS_MAKEFILES 315dc80aa23SSatish Balay# Builds the etags file for examples 316dc80aa23SSatish Balayetags_examples: 31709f7043eSSatish Balay -${RM} ${TAGSDIR}/TAGS_EXAMPLES 31809f7043eSSatish Balay -touch ${TAGSDIR}/TAGS_EXAMPLES 31909f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesc alltree 32009f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesch alltree 32109f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesf alltree 32209f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesfh alltree 32355194d7eSSatish Balay -chmod g+w TAGS_EXAMPLES 3242176044fSSatish Balayetags_fexamples: 32509f7043eSSatish Balay -${RM} ${TAGSDIR}/TAGS_FEXAMPLES 32609f7043eSSatish Balay -touch ${TAGSDIR}/TAGS_FEXAMPLES 32709f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_FEXAMPLES ACTION=etags_examplesf alltree 32809f7043eSSatish Balay -${OMAKE} PETSC_DIR=${PETSC_DIR} TAGSFILE=${TAGSDIR}/TAGS_EXAMPLES ACTION=etags_examplesfh alltree 3292176044fSSatish Balay -chmod g+w TAGS_FEXAMPLES 330b38bb785SSatish Balay# 331f20f7ba3SSatish Balay# These are here for the target allci and allco, and etags 3323677444aSSatish Balay# 333b38bb785SSatish Balay 334516d1546SSatish BalayBMAKEFILES = bmake/common/base bmake/common/rules_win32 bmake/common/test \ 335516d1546SSatish Balay bmake/common/bopt* bmake/*/rules bmake/*/variables bmake/*/packages \ 336f7f63bceSSatish Balay bmake/*/petscconf.h bmake/*/petscfix.h bmake/win32/makefile.dos bmake/config/*.in \ 3377666ef6eSBarry Smith bmake/*/buildtest bmake/adic.init bmake/adicmf.init 3382f1ebae6SLois Curfman McInnesDOCS = bmake/readme bmake/petscconf.defs 33957c4596dSSatish BalaySCRIPTS = maint/addlinks maint/builddist maint/buildlinks maint/wwwman \ 34057c4596dSSatish Balay maint/xclude maint/crontab \ 34157c4596dSSatish Balay maint/autoftp include/foldinclude/generateincludes 34211b6ed10SLois Curfman McInnes 3436b91f8d1SSatish Balayupdatewebdocs: 3446b91f8d1SSatish Balay -chmod -R ug+w /mcs/tmp/petsc-tmp 3456b91f8d1SSatish Balay -chgrp -R petsc /mcs/tmp/petsc-tmp 3466b91f8d1SSatish Balay -/bin/rm -rf /mcs/tmp/petscdocs 3476b91f8d1SSatish Balay -/bin/cp -r /mcs/tmp/petsc-tmp/docs /mcs/tmp/petscdocs 3486b91f8d1SSatish Balay -maint/update-docs.py /mcs/tmp/petscdocs 3496b91f8d1SSatish Balay -find /mcs/tmp/petscdocs -type d -name "*" -exec chmod g+w {} \; 3506b91f8d1SSatish Balay -/bin/cp -r /mcs/tmp/petscdocs/* ${PETSC_DIR}/docs 3516b91f8d1SSatish Balay -/bin/rm -rf /mcs/tmp/petscdocs 3526b91f8d1SSatish Balay 3537f52c680SSatish Balay# Builds all the documentation - should be done every night 354074fadd8SSatish Balayalldoc: allmanualpages 355e15d8129SBarry Smith cd docs/tex/manual; ${OMAKE} manual.dvi manual.ps manual.html splitmanual.html 3567f52c680SSatish Balay 3572496ca06SSatish Balay# Deletes man pages (HTML version) 3582496ca06SSatish Balaydeletemanualpages: 359130c9832SBarry Smith ${RM} -f ${LOC}/docs/manualpages/*/*.html \ 360130c9832SBarry Smith ${LOC}/docs/manualpages/manualpages.cit 3612496ca06SSatish Balay 36211b6ed10SLois Curfman McInnes# Builds all versions of the man pages 363981c4779SBarry Smithallmanualpages: deletemanualpages 364130c9832SBarry Smith -${OMAKE} ACTION=manualpages_buildcite tree_basic LOC=${LOC} 365130c9832SBarry Smith -${OMAKE} ACTION=manualpages tree_basic LOC=${LOC} 36648b2c0e9SBarry Smith -maint/wwwindex.py ${PETSC_DIR} ${LOC} 367130c9832SBarry Smith -${OMAKE} ACTION=manexamples tree LOC=${LOC} 368130c9832SBarry Smith -${OMAKE} manconcepts LOC=${LOC} 36948b2c0e9SBarry Smith -${OMAKE} ACTION=getexlist tree LOC=${LOC} 37048b2c0e9SBarry Smith -${OMAKE} ACTION=exampleconcepts tree LOC=${LOC} 37148b2c0e9SBarry Smith -maint/helpindex.py ${PETSC_DIR} ${LOC} 372130c9832SBarry Smith -@chmod g+w ${LOC}/docs/manualpages/*/*.html 373e01137a2SSatish Balay 374435da068SBarry Smith# Builds .html versions of the source 375435da068SBarry Smithallhtml: 376779f5535SBarry Smith -${OMAKE} ACTION=html PETSC_DIR=${PETSC_DIR} tree LOC=${LOC} 377435da068SBarry Smith 378115a300dSBarry Smithallcleanhtml: 379115a300dSBarry Smith -${OMAKE} ACTION=cleanhtml PETSC_DIR=${PETSC_DIR} tree 380395565bcSBarry Smith 38111b6ed10SLois Curfman McInnes# Builds Fortran stub files 38211b6ed10SLois Curfman McInnesallfortranstubs: 383*807270aaSBarry Smith -@include/foldinclude/generateincludes ${PETSC_DIR} 384d77bb2e1SSatish Balay -@${RM} -f src/fortran/auto/*.c 385bbe92fcfSSatish Balay -${OMAKE} ACTION=fortranstubs tree_basic 3860a0eb2c5SBarry Smith chmod g+w src/fortran/auto/*.c 387*807270aaSBarry Smith -@cd src/fortran/auto; ${RM} makefile.src; echo SOURCEC = `find . -type f -name "*.c" -printf "%f "` > makefile.src 388*807270aaSBarry Smith -@cd src/fortran/auto; ${OMAKE} fixfortran 389f6ff2982SSatish Balay 390d55938c2SBarry Smithallci: 391f20f7ba3SSatish Balay -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=ci alltree 392b951964fSBarry Smith 393d55938c2SBarry Smithallco: 394f20f7ba3SSatish Balay -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=co alltree 395d55938c2SBarry Smith 396791d64f4SSatish Balay# usage make allrcslabel NEW_RCS_LABEL=v_2_0_28 397791d64f4SSatish Balayallrcslabel: 398791d64f4SSatish Balay -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} NEW_RCS_LABEL=${NEW_RCS_LABEL} ACTION=rcslabel alltree 399b334301eSBarry Smith# 400b334301eSBarry Smith# The commands below are for generating ADIC versions of the code; 401b334301eSBarry Smith# they are not currently used. 402b334301eSBarry Smith# 4035eea60f9SBarry Smithalladicignore: 404b87434adSSatish Balay -@${RM} ${INSTALL_LIB_DIR}/adicignore 405d77bb2e1SSatish Balay -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adicignore tree 4065eea60f9SBarry Smith 4075eea60f9SBarry Smithalladic: 408d18b0ea7SBarry Smith -@echo "Beginning to compile ADIC source code in all directories" 40967b024f7SSatish Balay -@echo "Using ADIC compiler: ${ADIC_CC} ${CCPPFLAGS}" 410d18b0ea7SBarry Smith -@echo "=========================================" 41147794344SBarry Smith -@cd include ; \ 41267b024f7SSatish Balay ${ADIC_CC} -s -f 1 ${CCPPFLAGS} petsc.h 413d77bb2e1SSatish Balay -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic tree 41447794344SBarry Smith -@cd src/inline ; \ 415d77bb2e1SSatish Balay ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} adic 41677ed5343SBarry Smith -@cd src/blaslapack ; \ 417d77bb2e1SSatish Balay ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adic tree 4186e81b665SBarry Smith 41947794344SBarry Smithalladiclib: 420d18b0ea7SBarry Smith -@echo "Beginning to compile ADIC libraries in all directories" 421d77bb2e1SSatish Balay -@echo "Using compiler: ${CC} ${COPTFLAGS}" 422d18b0ea7SBarry Smith -@echo "-----------------------------------------" 423d77bb2e1SSatish Balay -@echo "Using PETSc flags: ${PETSCFLAGS} ${PCONF}" 424d18b0ea7SBarry Smith -@echo "-----------------------------------------" 425e0e703c1SSatish Balay -@echo "Using configuration flags:" 426e0e703c1SSatish Balay -@grep "define " bmake/${PETSC_ARCH}/petscconf.h 427d18b0ea7SBarry Smith -@echo "-----------------------------------------" 428d77bb2e1SSatish Balay -@echo "Using include paths: ${PETSC_INCLUDE}" 429d18b0ea7SBarry Smith -@echo "-----------------------------------------" 430d77bb2e1SSatish Balay -@echo "Using PETSc directory: ${PETSC_DIR}" 431d77bb2e1SSatish Balay -@echo "Using PETSc arch: ${PETSC_ARCH}" 432d18b0ea7SBarry Smith -@echo "=========================================" 433b87434adSSatish Balay -@${RM} -f ${INSTALL_LIB_DIR}/*adic.a 434d77bb2e1SSatish Balay -@${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib tree 43577ed5343SBarry Smith -@cd src/blaslapack ; \ 436d77bb2e1SSatish Balay ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} ACTION=adiclib tree 4377e351921SBarry Smith -@cd src/adic/src ; \ 438d77bb2e1SSatish Balay ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib 4395eea60f9SBarry Smith 4409e417c50SSatish Balay# ------------------------------------------------------------------------------- 4419e417c50SSatish Balay# 4429e417c50SSatish Balay# Some macros to check if the fortran interface is up-to-date. 4439e417c50SSatish Balay# 4449e417c50SSatish Balaycountfortranfunctions: 445d77bb2e1SSatish Balay -@cd ${PETSC_DIR}/src/fortran; egrep '^void' custom/*.c auto/*.c | \ 44685c7cd6cSSatish Balay cut -d'(' -f1 | tr -s ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \ 4479e417c50SSatish Balay sed "s/_$$//" | sort > /tmp/countfortranfunctions 448b334301eSBarry Smith 4499e417c50SSatish Balaycountcfunctions: 45085c7cd6cSSatish Balay -@ grep extern ${PETSC_DIR}/include/*.h *.h | grep "(" | tr -s ' ' | \ 45185c7cd6cSSatish Balay cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '\012' | \ 4529e417c50SSatish Balay tr 'A-Z' 'a-z' | sort > /tmp/countcfunctions 4539e417c50SSatish Balay 4549e417c50SSatish Balaydifffortranfunctions: countfortranfunctions countcfunctions 4559e417c50SSatish Balay -@echo -------------- Functions missing in the fortran interface --------------------- 4569700b7f8SSatish Balay -@${DIFF} /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2 4579e417c50SSatish Balay -@echo ----------------- Functions missing in the C interface ------------------------ 4589700b7f8SSatish Balay -@${DIFF} /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2 459d77bb2e1SSatish Balay -@${RM} /tmp/countcfunctions /tmp/countfortranfunctions 460b334301eSBarry Smith 4613f4c9a3aSSatish Balaycheckbadfortranstubs: 4623f4c9a3aSSatish Balay -@echo "=========================================" 4633f4c9a3aSSatish Balay -@echo "Functions with MPI_Comm as an Argument" 4643f4c9a3aSSatish Balay -@echo "=========================================" 465d77bb2e1SSatish Balay -@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \ 46685c7cd6cSSatish Balay tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 4673f4c9a3aSSatish Balay -@echo "=========================================" 4683f4c9a3aSSatish Balay -@echo "Functions with a String as an Argument" 4693f4c9a3aSSatish Balay -@echo "=========================================" 470d77bb2e1SSatish Balay -@cd ${PETSC_DIR}/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \ 47185c7cd6cSSatish Balay tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 4723f4c9a3aSSatish Balay -@echo "=========================================" 4733f4c9a3aSSatish Balay -@echo "Functions with Pointers to PETSc Objects as Argument" 4743f4c9a3aSSatish Balay -@echo "=========================================" 475d77bb2e1SSatish Balay -@cd ${PETSC_DIR}/src/fortran/auto; \ 47685c7cd6cSSatish Balay _p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s ' ' | \ 47785c7cd6cSSatish Balay cut -d' ' -f 3 | tr -s '\012' | grep -v '{' | cut -d'*' -f1 | \ 4783f4c9a3aSSatish Balay sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \ 4793f4c9a3aSSatish Balay for OBJ in $$_p_OBJ; do \ 48085c7cd6cSSatish Balay grep "$$OBJ \*" *.c | tr -s ' ' | tr -s ':' ' ' | \ 4813f4c9a3aSSatish Balay cut -d'(' -f1 | cut -d' ' -f1,3; \ 4823f4c9a3aSSatish Balay done 4833677444aSSatish Balay# Builds noise routines (not yet publically available) 4843677444aSSatish Balay# Note: libfast cannot run on .F files on certain machines, so we 4853677444aSSatish Balay# use lib and check for errors here. 48671fcab10SSatish Balaynoise: info chklib_dir 4873677444aSSatish Balay -@echo "Beginning to compile noise routines" 4883677444aSSatish Balay -@echo "=========================================" 4893677444aSSatish Balay -@cd src/snes/interface/noise; \ 4903677444aSSatish Balay ${OMAKE} BOPT=${BOPT} PETSC_ARCH=${PETSC_ARCH} lib > trashz 2>&1; \ 4913677444aSSatish Balay grep -v clog trashz | grep -v "information sections" | \ 4923677444aSSatish Balay egrep -i '(Error|warning|Can)' >> /dev/null;\ 4933677444aSSatish Balay if [ "$$?" != 1 ]; then \ 4943677444aSSatish Balay cat trashz ; fi; ${RM} trashz 495b87434adSSatish Balay ${RANLIB} ${INSTALL_LIB_DIR}/libpetscsnes.a 496b87434adSSatish Balay -@chmod g+w ${INSTALL_LIB_DIR}/libpetscsnes.a 4973677444aSSatish Balay -@echo "Completed compiling noise routines" 4983677444aSSatish Balay -@echo "=========================================" 4993677444aSSatish Balay 5004556b810SBarry Smith# 5014556b810SBarry Smith# Automatically generates PETSc exercises in html from the tutorial examples. 502b6ea66eeSBarry Smith# 503b6ea66eeSBarry Smith# The introduction for each section is obtained from docs/manualpages/bop.${MANSEC} is under RCS and may be edited 504b6ea66eeSBarry Smith# (used also in introductions to the manual pages) 505b6ea66eeSBarry Smith# The overall introduction is in docs/exercises/introduction.html and is under RCS and may be edited 506b6ea66eeSBarry Smith# The list of exercises is from TUTORIALS in each directory's makefile 507b6ea66eeSBarry Smith# 5084556b810SBarry Smith# DO NOT EDIT the pageform.txt or *.htm files generated since they will be automatically replaced. 5094556b810SBarry Smith# The pagemaker rule is in the file bmake/common (at the bottom) 5104556b810SBarry Smith# 511843ae28eSBarry Smith# Eventually the line below will replace the two cd in the rule below, it is just this way now for speed 51297e8d271SBarry Smith# -@${OMAKE} PETSC_DIR=${PETSC_DIR} pagemaker 513843ae28eSBarry Smith# 51497e8d271SBarry Smithexercises: 51597e8d271SBarry Smith -@echo "=========================================" 51697e8d271SBarry Smith -@echo "Generating HTML tutorial exercises" 517467fbd6dSBarry Smith -@${RM} docs/pageform.txt 51897e8d271SBarry Smith -@echo "title=\"PETSc Exercises\"" > docs/pageform.txt 51997e8d271SBarry Smith -@echo "access_title=Exercise Sections" >> docs/pageform.txt 520beb1b3a5SBarry Smith -@echo "access_format=short" >> docs/pageform.txt 52197e8d271SBarry Smith -@echo "startpage=../exercises/introduction.htm" >> docs/pageform.txt 52297e8d271SBarry Smith -@echo "NONE title=\"Introduction\" command=link src=../exercises/introduction.htm" >> docs/pageform.txt 52397e8d271SBarry Smith -@echo "Generating HTML for individual directories" 52497e8d271SBarry Smith -@echo "=========================================" 525beb1b3a5SBarry Smith -@${OMAKE} PETSC_DIR=${PETSC_DIR} ACTION=pagemaker tree 52697e8d271SBarry Smith -@echo "Completed HTML for individual directories" 52797e8d271SBarry Smith -@echo "NONE title=\"<HR>\" " >> docs/pageform.txt; 52897e8d271SBarry Smith -@echo "NONE title=\"PETSc Documentation\" command=link src=../index.html target=replace" >> docs/pageform.txt 52997e8d271SBarry Smith /home/MPI/class/mpiexmpl/maint/makepage.new -pageform=docs/pageform.txt -access_extra=/dev/null -outdir=docs/exercises 53097e8d271SBarry Smith -@echo "=========================================" 53197e8d271SBarry Smith 532db87f17aSMatthew Knepley.PHONY: info info_h build build_lt testexamples testfortran testexamples_uni testfortran_uni ranlib deletelibs allclean update chk_petsc_dir \ 533a42cec9dSMatthew Knepley alletags etags etags_complete etags_noexamples etags_makefiles etags_examples etags_fexamples updatewebdocs alldoc allmanualpages \ 534a42cec9dSMatthew Knepley allhtml allcleanhtml allfortranstubs allci allco allrcslabel alladicignore alladic alladiclib countfortranfunctions \ 535ca5c9d59SMatthew Knepley start_configure configure_petsc configure_clean 53697e8d271SBarry Smith 537