xref: /petsc/systems/Apple/OSX/bin/makeall (revision 3d996552296fa5aff2ef76b1450b6d3231aa62c2)
1#!/bin/sh
2#
3# This script makes a Apple Mac OS X installer for PETSc, it uses arch-osx-release.py, arch-osx-debug.py, makeframework, makedocs, makedmg
4#
5# Run from the root PETSc directory
6#
7# See ./makeframework on how to use the framework:
8#
9#
10
11if [ ! -f include/petscversion.h ]; then
12    echo "Could not locate include/petscversion.h! Please invoke this script from top level PETSc source dir"
13    exit 1
14fi
15
16export PETSC_DIR=$PWD
17export PETSC_ARCH=arch-osx-debug
18rm -rf arch-osx-debug
19./systems/Apple/OSX/bin/arch-osx-debug.py
20make all test
21./systems/Apple/OSX/bin/makeframework debug
22
23export PETSC_ARCH=arch-osx-release
24rm -rf arch-osx-release
25./systems/Apple/OSX/bin/arch-osx-release.py
26make all test
27./systems/Apple/OSX/bin/makeframework release
28
29export LOC=$PETSC_DIR
30make alldoc
31make allman
32./systems/Apple/OSX/bin/makedocs
33
34./systems/Apple/OSX/bin/makedmg
35
36echo "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/PETSc-OSX.dmg"
37echo "  or sudo cp -r ${PETSC_DIR}/arch-osx-release/PETSc-OSX  /Library/Frameworks"
38echo "  and sudo cp -r ${PETSC_DIR}/arch-osx-debug/PETSc-OSX  /Library/Frameworks"
39
40
41
42
43