xref: /petsc/systems/Apple/OSX/bin/makeall (revision 3d996552296fa5aff2ef76b1450b6d3231aa62c2)
1409736cdSBarry Smith#!/bin/sh
2409736cdSBarry Smith#
3d9dc08c3SBarry Smith# This script makes a Apple Mac OS X installer for PETSc, it uses arch-osx-release.py, arch-osx-debug.py, makeframework, makedocs, makedmg
4409736cdSBarry Smith#
5409736cdSBarry Smith# Run from the root PETSc directory
6409736cdSBarry Smith#
7409736cdSBarry Smith# See ./makeframework on how to use the framework:
8409736cdSBarry Smith#
9409736cdSBarry Smith#
10*966be33aSSatish Balay
11*966be33aSSatish Balayif [ ! -f include/petscversion.h ]; then
12*966be33aSSatish Balay    echo "Could not locate include/petscversion.h! Please invoke this script from top level PETSc source dir"
13*966be33aSSatish Balay    exit 1
14*966be33aSSatish Balayfi
15*966be33aSSatish Balay
16*966be33aSSatish Balayexport PETSC_DIR=$PWD
17a6a40a5cSBarry Smithexport PETSC_ARCH=arch-osx-debug
186187e55bSBarry Smithrm -rf arch-osx-debug
19*966be33aSSatish Balay./systems/Apple/OSX/bin/arch-osx-debug.py
20a6a40a5cSBarry Smithmake all test
21*966be33aSSatish Balay./systems/Apple/OSX/bin/makeframework debug
22409736cdSBarry Smith
23d9dc08c3SBarry Smithexport PETSC_ARCH=arch-osx-release
246187e55bSBarry Smithrm -rf arch-osx-release
25*966be33aSSatish Balay./systems/Apple/OSX/bin/arch-osx-release.py
26a6a40a5cSBarry Smithmake all test
27*966be33aSSatish Balay./systems/Apple/OSX/bin/makeframework release
28409736cdSBarry Smith
29409736cdSBarry Smithexport LOC=$PETSC_DIR
30f66eea08SBarry Smithmake alldoc
31f66eea08SBarry Smithmake allman
32*966be33aSSatish Balay./systems/Apple/OSX/bin/makedocs
33409736cdSBarry Smith
34*966be33aSSatish Balay./systems/Apple/OSX/bin/makedmg
35409736cdSBarry Smith
36d9dc08c3SBarry Smithecho "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/PETSc-OSX.dmg"
372e826d6fSBarry Smithecho "  or sudo cp -r ${PETSC_DIR}/arch-osx-release/PETSc-OSX  /Library/Frameworks"
382e826d6fSBarry Smithecho "  and sudo cp -r ${PETSC_DIR}/arch-osx-debug/PETSc-OSX  /Library/Frameworks"
39409736cdSBarry Smith
40409736cdSBarry Smith
41409736cdSBarry Smith
42409736cdSBarry Smith
43