Makefile
author nipkow
Thu, 01 Dec 1994 17:35:03 +0100
changeset 192 2adddba98924
parent 189 385296e2c2f9
child 209 cc7ad90039b9
permissions -rw-r--r--
Added dependency on thy_syntax.ML
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     1
#########################################################################
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     2
#									#
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     3
# 			Makefile for Isabelle (HOL)			#
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     4
#									#
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     5
#########################################################################
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     6
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     7
#To make the system, cd to this directory and type  
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     8
#	make -f Makefile 
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     9
#To make the system and test it on standard examples, type  
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    10
#	make -f Makefile test
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    11
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    12
#Environment variable ISABELLECOMP specifies the compiler.
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    13
#Environment variable ISABELLEBIN specifies the destination directory.
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    14
#For Poly/ML, ISABELLEBIN must begin with a /
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    15
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    16
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    17
#if it is out of date, since this Makefile does not know its dependencies!
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    18
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    19
BIN = $(ISABELLEBIN)
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    20
COMP = $(ISABELLECOMP)
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    21
FILES = ROOT.ML HOL.thy HOL.ML simpdata.ML Ord.thy Ord.ML \
119
93dc86ccee28 HOL/Makefile, ROOT: updated for new .thy files
lcp
parents: 97
diff changeset
    22
	Set.thy Set.ML Fun.thy Fun.ML subset.thy subset.ML \
192
2adddba98924 Added dependency on thy_syntax.ML
nipkow
parents: 189
diff changeset
    23
	equalities.thy equalities.ML thy_syntax.ML \
176
363bddd82ffe Trancl.{thy,ML} was missing
nipkow
parents: 170
diff changeset
    24
	Prod.thy Prod.ML Trancl.ML Trancl.thy Sum.thy Sum.ML WF.thy WF.ML \
119
93dc86ccee28 HOL/Makefile, ROOT: updated for new .thy files
lcp
parents: 97
diff changeset
    25
	mono.thy mono.ML Lfp.thy Lfp.ML Gfp.thy Gfp.ML Nat.thy Nat.ML \
189
385296e2c2f9 added IMP/Properties
nipkow
parents: 176
diff changeset
    26
	add_ind_def.ML ind_syntax.ML indrule.ML Inductive.ML Inductive.thy \
129
0bba840aa07c New version of datatype.ML with primrec (Norbert).
nipkow
parents: 128
diff changeset
    27
	intr_elim.ML datatype.ML ../Pure/section_utils.ML\
128
89669c58e506 INSTALLATION OF INDUCTIVE DEFINITIONS
lcp
parents: 119
diff changeset
    28
	Finite.ML Finite.thy\
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    29
        Arith.thy Arith.ML Sexp.thy Sexp.ML Univ.thy Univ.ML \
148
13b15899c528 moved LList* to ex
nipkow
parents: 133
diff changeset
    30
        List.thy List.ML \
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    31
	../Provers/classical.ML ../Provers/simplifier.ML \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    32
	../Provers/splitter.ML ../Provers/ind.ML
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    33
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    34
IMP_FILES = IMP/ROOT.ML IMP/Com.ML IMP/Com.thy IMP/Denotation.ML\
189
385296e2c2f9 added IMP/Properties
nipkow
parents: 176
diff changeset
    35
            IMP/Denotation.thy IMP/Equiv.ML IMP/Equiv.thy\
385296e2c2f9 added IMP/Properties
nipkow
parents: 176
diff changeset
    36
            IMP/Properties.thy IMP/Properties.ML
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    37
157
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    38
IOA_FILES = IOA/ROOT.ML IOA/example/Action.ML IOA/example/Action.thy\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    39
            IOA/example/Channels.ML IOA/example/Channels.thy\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    40
            IOA/example/Correctness.ML IOA/example/Correctness.thy\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    41
            IOA/example/Impl.ML IOA/example/Impl.thy IOA/example/Lemmas.ML\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    42
            IOA/example/Lemmas.thy IOA/example/Multiset.ML\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    43
            IOA/example/Multiset.thy IOA/example/Packet.thy\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    44
            IOA/example/Receiver.ML IOA/example/Receiver.thy\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    45
            IOA/example/Sender.ML IOA/example/Sender.thy IOA/example/Spec.thy\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    46
            IOA/meta_theory/Asig.thy IOA/meta_theory/IOA.ML\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    47
            IOA/meta_theory/IOA.thy IOA/meta_theory/Option.ML\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    48
            IOA/meta_theory/Option.thy IOA/meta_theory/Solve.ML\
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    49
            IOA/meta_theory/Solve.thy
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    50
128
89669c58e506 INSTALLATION OF INDUCTIVE DEFINITIONS
lcp
parents: 119
diff changeset
    51
EX_FILES = ex/ROOT.ML ex/cla.ML \
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    52
	   ex/LexProd.ML ex/LexProd.thy ex/meson.ML ex/mesontest.ML\
128
89669c58e506 INSTALLATION OF INDUCTIVE DEFINITIONS
lcp
parents: 119
diff changeset
    53
	   ex/MT.ML ex/MT.thy ex/Acc.ML ex/Acc.thy \
129
0bba840aa07c New version of datatype.ML with primrec (Norbert).
nipkow
parents: 128
diff changeset
    54
           ex/PropLog.ML ex/PropLog.thy ex/Puzzle.ML ex/Puzzle.thy\
148
13b15899c528 moved LList* to ex
nipkow
parents: 133
diff changeset
    55
           ex/Qsort.thy ex/Qsort.ML ex/LList.thy ex/LList.ML \
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    56
	   ex/Rec.ML ex/Rec.thy ex/rel.ML ex/set.ML ex/Simult.ML ex/Simult.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    57
	   ex/Term.ML ex/Term.thy
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    58
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    59
SUBST_FILES = Subst/ROOT.ML Subst/AList.ML Subst/AList.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    60
              Subst/Setplus.ML Subst/Setplus.thy\
97
3f4976d8c97f HOL/Makefile: now test depends upon SUBST_FILES
lcp
parents: 78
diff changeset
    61
              Subst/Subst.ML Subst/Subst.thy\
3f4976d8c97f HOL/Makefile: now test depends upon SUBST_FILES
lcp
parents: 78
diff changeset
    62
              Subst/Unifier.ML Subst/Unifier.thy\
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    63
              Subst/UTerm.ML Subst/UTerm.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    64
              Subst/UTLemmas.ML Subst/UTLemmas.thy
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    65
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    66
$(BIN)/HOL:   $(BIN)/Pure  $(FILES) 
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    67
	if [ -d $${ISABELLEBIN:?}/Pure ];\
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    68
           	then echo Bad value for ISABELLEBIN: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    69
                	$(BIN) is the Isabelle source directory; \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    70
                	exit 1; \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    71
           	fi;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    72
	case "$(COMP)" in \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    73
	poly*)	echo 'make_database"$(BIN)/HOL"; quit();'  \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    74
			| $(COMP) $(BIN)/Pure;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    75
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/HOL ;;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    76
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/HOL" banner;' | $(BIN)/Pure ;;\
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    77
	*)	echo Bad value for ISABELLECOMP: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    78
                	$(COMP) is not poly or sml;;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    79
	esac
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    80
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    81
$(BIN)/Pure:
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    82
	cd ../Pure;  $(MAKE)
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    83
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    84
#Directories IMP and Subst also test the system
97
3f4976d8c97f HOL/Makefile: now test depends upon SUBST_FILES
lcp
parents: 78
diff changeset
    85
#Load ex/ROOT.ML last since it creates the file "test"
157
45d0cf6e309d added IOA files
clasohm
parents: 148
diff changeset
    86
test:   $(BIN)/HOL  $(IMP_FILES) $(IOA_FILES) $(SUBST_FILES)  $(EX_FILES)
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    87
	case "$(COMP)" in \
164
028a32af4c4d changed command for making 'test'
clasohm
parents: 157
diff changeset
    88
	poly*)	echo '(use"IMP/ROOT.ML"; use"IOA/ROOT.ML"; use"Subst/ROOT.ML"; use"ex/ROOT.ML"); quit();' \
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    89
                        | $(COMP) $(BIN)/HOL ;;\
170
3a8d722fd3ff HOL,ZF/Makefile: enclosed multiple "use" calls in parentheses. This
lcp
parents: 164
diff changeset
    90
	sml*)	echo '(use"IMP/ROOT.ML"; use"IOA/ROOT.ML"; use"Subst/ROOT.ML"; use"ex/ROOT.ML");' | $(BIN)/HOL;;\
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    91
	*)	echo Bad value for ISABELLECOMP: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    92
                	$(COMP) is not poly or sml;;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    93
	esac
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    94
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    95
.PRECIOUS:  $(BIN)/Pure  $(BIN)/HOL