doc-src/System/misc.tex
author wenzelm
Wed, 14 Feb 2001 23:17:53 +0100
changeset 11124 5b97a468b46d
parent 11031 99c4bed16b9b
child 11616 ee1247ba4941
permissions -rw-r--r--
isatool install handles KDE version 1 or 2;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
     1
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
     2
% $Id$
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
     3
3278
636322bfd057 release version (sort of);
wenzelm
parents: 3262
diff changeset
     4
\chapter{Miscellaneous tools} \label{ch:tools}
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
     5
11031
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
     6
Subsequently we describe various Isabelle related utilities, given in
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
     7
alphabetical order.
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
     8
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
     9
11031
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    10
\section{Converting legacy ML scripts --- \texttt{isatool convert}}
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    11
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    12
The \tooldx{convert} utility assists in converting legacy ML proof scripts
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    13
into the new-style format of Isabelle/Isar:
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    14
\begin{ttbox}
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    15
Usage: convert [FILES|DIRS...]
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    16
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    17
  Recursively find .ML files, converting legacy tactic scripts to
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    18
  Isabelle/Isar tactic emulation.
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    19
  Note: conversion is only approximated, based on some heuristics.
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    20
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    21
  Renames old versions of FILES by appending "~0~".
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    22
  Creates new versions of FILES by appending ".thy".
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    23
\end{ttbox}
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    24
The resulting theory text uses the tactic emulation facilities of
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    25
Isabelle/Isar (see also \cite{isabelle-ref}, especially the ``Conversion
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    26
guide'' in the appendix).  Usually there is some manual tuning required to get
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    27
an automatically converted script work again --- the success rate may be
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    28
around 99\% for common ML scripts.
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    29
99c4bed16b9b isatool convert;
wenzelm
parents: 9790
diff changeset
    30
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    31
\section{Viewing documentation --- \texttt{isatool doc}} \label{sec:tool-doc}
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    32
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    33
The \tooldx{doc} utility displays online documentation:
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    34
\begin{ttbox}
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    35
Usage: isatool doc [DOC]
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    36
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    37
  View Isabelle documentation DOC, or show list of available documents.
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    38
\end{ttbox}
7882
wenzelm
parents: 7849
diff changeset
    39
If called without arguments, it lists all available documents. Each line
wenzelm
parents: 7849
diff changeset
    40
starts with an identifier, followed by a short description. Any of these
wenzelm
parents: 7849
diff changeset
    41
identifiers may be specified as the first argument in order to have the
wenzelm
parents: 7849
diff changeset
    42
corresponding document displayed.
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    43
7882
wenzelm
parents: 7849
diff changeset
    44
\medskip The \texttt{ISABELLE_DOCS} setting specifies the list of directories
wenzelm
parents: 7849
diff changeset
    45
(separated by colons) to be scanned for documentations.  The program for
wenzelm
parents: 7849
diff changeset
    46
viewing \texttt{dvi} files is determined by the \texttt{DVI_VIEWER} setting.
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    47
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    48
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    49
\section{Tuning proof scripts --- \texttt{isatool expandshort}}
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    50
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    51
The \tooldx{expandshort} utility tunes {\ML} proof scripts to enhance
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
    52
readability:
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    53
\begin{ttbox}
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
    54
Usage: expandshort [FILES|DIRS...]
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    55
7498
1e5585fd3632 expandshort usage: forward_tac;
wenzelm
parents: 7463
diff changeset
    56
  Recursively find .ML files, expand shorthand goal commands.  Also
1e5585fd3632 expandshort usage: forward_tac;
wenzelm
parents: 7463
diff changeset
    57
  contracts uses of resolve_tac, dresolve_tac, eresolve_tac,
7883
wenzelm
parents: 7882
diff changeset
    58
  forward_tac, rewrite_goals_tac on 1-element lists; furthermore
wenzelm
parents: 7882
diff changeset
    59
  expands tabs, which are forbidden in SML string constants.
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    60
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
    61
  Renames old versions of files by appending "~~".
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    62
\end{ttbox}
7882
wenzelm
parents: 7849
diff changeset
    63
In the files or directories supplied as arguments, all occurrences of the
wenzelm
parents: 7849
diff changeset
    64
shorthand commands \texttt{br}, \texttt{be} etc.\ in proof scripts are
wenzelm
parents: 7849
diff changeset
    65
replaced with the corresponding full commands.  The old versions of the files
wenzelm
parents: 7849
diff changeset
    66
are renamed to have the suffix``~\verb'~~'''.
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
    67
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    68
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
    69
\section{Getting logic images --- \texttt{isatool findlogics}}
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    70
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    71
The \tooldx{findlogics} utility traverses all directories specified in
7882
wenzelm
parents: 7849
diff changeset
    72
\texttt{ISABELLE_PATH}, looking for Isabelle logic images. Its usage is:
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    73
\begin{ttbox}
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    74
Usage: isatool findlogics
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    75
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    76
  Collect heap file names from ISABELLE_PATH.
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    77
\end{ttbox}
6414
wenzelm
parents: 5571
diff changeset
    78
The base names of all files found on the path are printed --- sorted and with
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
    79
duplicates removed. Also note that lookup in \texttt{ISABELLE_PATH} includes
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
    80
the current values of \texttt{ML_SYSTEM} and \texttt{ML_PLATFORM}. Thus
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
    81
switching to another {\ML} compiler may change the set of logic images
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
    82
available.
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
    83
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    84
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    85
\section{Inspecting the settings environment -- \texttt{isatool getenv}}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    86
\label{sec:tool-getenv}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    87
7882
wenzelm
parents: 7849
diff changeset
    88
The Isabelle settings environment --- as provided by the site-default and
wenzelm
parents: 7849
diff changeset
    89
user-specific settings files --- can be inspected with the \tooldx{getenv}
wenzelm
parents: 7849
diff changeset
    90
utility:
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    91
\begin{ttbox}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    92
Usage: isatool getenv [OPTIONS] [VARNAMES ...]
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    93
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    94
  Options are:
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    95
    -a           display complete environment
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    96
    -b           print values only (doesn't work for -a)
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    97
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    98
  Get value of VARNAMES from the Isabelle settings.
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
    99
\end{ttbox}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   100
7882
wenzelm
parents: 7849
diff changeset
   101
With the \texttt{-a} option, one may inspect the full process environment that
wenzelm
parents: 7849
diff changeset
   102
Isabelle related programs are run in. This usually contains much more
wenzelm
parents: 7849
diff changeset
   103
variables than are actually Isabelle settings.  Normally, output is a list of
wenzelm
parents: 7849
diff changeset
   104
lines of the form \mbox{$name$\texttt{=}$value$}. The \texttt{-b} option
wenzelm
parents: 7849
diff changeset
   105
causes only the values to be printed.
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   106
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   107
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   108
\subsection*{Examples}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   109
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   110
Get the {\ML} system name and the location where the compiler binaries are
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   111
supposed to reside as follows:
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   112
\begin{ttbox}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   113
isatool getenv ML_SYSTEM ML_HOME
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   114
{\out ML_SYSTEM=polyml}
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   115
{\out ML_HOME=/usr/share/polyml/x86-linux}
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   116
\end{ttbox}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   117
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   118
The next one peeks at the output directory for \texttt{isabelle} logic images:
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   119
\begin{ttbox}
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   120
isatool getenv -b ISABELLE_OUTPUT
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   121
{\out /home/me/isabelle/heaps/polyml_x86-linux}
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   122
\end{ttbox}
4555
wenzelm
parents: 4540
diff changeset
   123
Here we have used the \texttt{-b} option to suppress the
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   124
\texttt{ISABELLE_OUTPUT=} prefix.  The value above is what became of the
4555
wenzelm
parents: 4540
diff changeset
   125
following assignment in the default settings file:
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   126
\begin{ttbox}
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   127
ISABELLE_OUTPUT="\$ISABELLE_HOME_USER/heaps"
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   128
\end{ttbox}
9790
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   129
Note how the \texttt{ML_IDENTIFIER} value got appended automatically to each
978c635c77f6 ISABELLE_PATH: ML_IDENTIFIER no longer added;
wenzelm
parents: 7883
diff changeset
   130
path component. This is a special feature of \texttt{ISABELLE_OUTPUT}.
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   131
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   132
6418
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   133
\section{Installing standalone Isabelle executables -- \texttt{isatool install}}
7882
wenzelm
parents: 7849
diff changeset
   134
\label{sec:tool-install}
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   135
7882
wenzelm
parents: 7849
diff changeset
   136
By default, the Isabelle binaries (\texttt{isabelle}, \texttt{isatool} etc.)
wenzelm
parents: 7849
diff changeset
   137
are just run from their location within the distribution directory, probably
6418
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   138
indirectly by the shell through its \texttt{PATH}.  Other schemes of
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   139
installation are supported by the \tooldx{install} utility:
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   140
\begin{ttbox}
6418
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   141
Usage: install [OPTIONS]
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   142
5405
2ecb74e65439 tuned isatool install;
wenzelm
parents: 5366
diff changeset
   143
  Options are:
7883
wenzelm
parents: 7882
diff changeset
   144
    -d DISTDIR   use DISTDIR as Isabelle distribution
wenzelm
parents: 7882
diff changeset
   145
                 (default ISABELLE_HOME)
11124
5b97a468b46d isatool install handles KDE version 1 or 2;
wenzelm
parents: 11031
diff changeset
   146
    -k VERSION   install KDE application icon on desktop
5b97a468b46d isatool install handles KDE version 1 or 2;
wenzelm
parents: 11031
diff changeset
   147
                 (for KDE VERSION 1 or 2)                                       
6418
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   148
    -p DIR       install standalone binaries in DIR
5405
2ecb74e65439 tuned isatool install;
wenzelm
parents: 5366
diff changeset
   149
6418
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   150
  Install Isabelle executables with absolute references to the current
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   151
  distribution directory.
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   152
\end{ttbox}
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   153
6418
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   154
The \texttt{-d} option overrides the current Isabelle distribution directory
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   155
as determined by \texttt{ISABELLE_HOME}.
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   156
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   157
The \texttt{-p} option installs executable wrapper scripts for
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   158
\texttt{isabelle}, \texttt{isatool}, \texttt{Isabelle}, containing proper
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   159
absolute references to the Isabelle distribution directory.  A typical
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   160
\texttt{DIR} specification would be some directory expected to be in the
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   161
shell's \texttt{PATH}, such as \texttt{/usr/local/bin}.  It is important to
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   162
note that a plain manual copy of the original Isabelle executables just would
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   163
not work!
87aa3e5190e0 updated isatool install;
wenzelm
parents: 6414
diff changeset
   164
7882
wenzelm
parents: 7849
diff changeset
   165
The \texttt{-k} option creates an Isabelle application object for the popular
11124
5b97a468b46d isatool install handles KDE version 1 or 2;
wenzelm
parents: 11031
diff changeset
   166
\textsl{K~Desktop Environment} (KDE)\index{KDE}, either for version 1 or 2.
5b97a468b46d isatool install handles KDE version 1 or 2;
wenzelm
parents: 11031
diff changeset
   167
The icon will appear directly on the desktop.
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   168
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   169
5571
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   170
\section{Creating instances of the Isabelle logo -- \texttt{isatool
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   171
    logo}}
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   172
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   173
The \tooldx{logo} utility creates any instance of the generic Isabelle logo as
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   174
an Encapsuled Postscript file (EPS):
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   175
\begin{ttbox}
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   176
Usage: logo [OPTIONS] NAME
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   177
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   178
  Create instance NAME of the Isabelle logo (as EPS).
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   179
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   180
  Options are:
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   181
    -o OUTFILE   set output file (default determined from NAME)
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   182
    -q           quiet mode
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   183
\end{ttbox}
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   184
You are encouraged to use this to create a derived logo for your Isabelle
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   185
project.  For example, \texttt{isatool logo HOOL} creates
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   186
\texttt{isabelle_hool.eps}.
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   187
3613c5d22cc6 added isatool logo;
wenzelm
parents: 5405
diff changeset
   188
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   189
\section{Isabelle's version of make --- \texttt{isatool make}}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   190
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
   191
The Isabelle \tooldx{make} utility is a very simple wrapper for
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
   192
ordinary Unix \texttt{make}:
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   193
\begin{ttbox}
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   194
Usage: isatool make [ARGS ...]
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   195
7801
535112d1f316 make: tuned usage;
wenzelm
parents: 7498
diff changeset
   196
  Compile the logic in current directory using IsaMakefile.
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   197
  ARGS are directly passed to the system make program.
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   198
\end{ttbox}
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
   199
Note that the Isabelle settings environment is also active. Thus one
3278
636322bfd057 release version (sort of);
wenzelm
parents: 3262
diff changeset
   200
may refer to its values within the \ttindex{IsaMakefile}, e.g.\ 
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
   201
\texttt{\$(ISABELLE_OUTPUT)}. Furthermore, programs started from the
3278
636322bfd057 release version (sort of);
wenzelm
parents: 3262
diff changeset
   202
make file also inherit this environment.  Typically,
636322bfd057 release version (sort of);
wenzelm
parents: 3262
diff changeset
   203
\texttt{IsaMakefile}s defer the real work to the \texttt{usedir}
636322bfd057 release version (sort of);
wenzelm
parents: 3262
diff changeset
   204
utility, see \S\ref{sec:tool-usedir}.
3217
d30d62128fe5 still under construction!
wenzelm
parents: 3188
diff changeset
   205
3278
636322bfd057 release version (sort of);
wenzelm
parents: 3262
diff changeset
   206
\medskip The basic \texttt{IsaMakefile} convention is that the default
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   207
target builds the actual logic, including its parents if appropriate.
4555
wenzelm
parents: 4540
diff changeset
   208
The \texttt{images} target is intended to build all local logic
wenzelm
parents: 4540
diff changeset
   209
images, while the \texttt{test} target shall build all related
wenzelm
parents: 4540
diff changeset
   210
examples.  The \texttt{all} target shall do \texttt{images} and
wenzelm
parents: 4540
diff changeset
   211
\texttt{test}.
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   212
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   213
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   214
\subsection*{Examples}
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   215
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   216
Refer to the \texttt{IsaMakefile}s of the Isabelle distribution's
4555
wenzelm
parents: 4540
diff changeset
   217
object-logics as a model for your own developements.  For example, see
wenzelm
parents: 4540
diff changeset
   218
\texttt{src/FOL/IsaMakefile}.
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   219
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   220
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   221
\section{Make all logics -- \texttt{isatool makeall}}
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   222
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   223
The \tooldx{makeall} utility applies Isabelle make to all logic
4555
wenzelm
parents: 4540
diff changeset
   224
directories of the distribution:
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   225
\begin{ttbox}
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   226
Usage: makeall [ARGS ...]
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   227
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   228
  Apply isatool make to all logics (passing ARGS).
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   229
\end{ttbox}
4555
wenzelm
parents: 4540
diff changeset
   230
The arguments \texttt{ARGS} are just passed verbatim to each
4540
24fcf5ecae88 updated to Isabelle98;
wenzelm
parents: 3752
diff changeset
   231
\texttt{make} invocation.
3188
445555a7b714 preliminary!
wenzelm
parents:
diff changeset
   232
5366
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   233
%%% Local Variables: 
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   234
%%% mode: latex
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   235
%%% TeX-master: "system"
8521cd8b0a40 emacs local vars;
wenzelm
parents: 4555
diff changeset
   236
%%% End: