Makefile
author nipkow
Fri, 16 Sep 1994 15:48:20 +0200
changeset 144 6254f50e5ec9
parent 133 4a2bb4fbc168
child 148 13b15899c528
permissions -rw-r--r--
Definition of C was not truly prim rec because C was called inside Gamma instead of outside.
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 \
93dc86ccee28 HOL/Makefile, ROOT: updated for new .thy files
lcp
parents: 97
diff changeset
    23
	equalities.thy equalities.ML \
70
9459592608e2 renamed theory files
clasohm
parents: 69
diff changeset
    24
	Prod.thy Prod.ML 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 \
128
89669c58e506 INSTALLATION OF INDUCTIVE DEFINITIONS
lcp
parents: 119
diff changeset
    26
	add_ind_def.ML ind_syntax.ML indrule.ML Inductive.ML \
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 \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    30
        LList.thy LList.ML 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\
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    35
            IMP/Denotation.thy IMP/Equiv.ML IMP/Equiv.thy
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    36
128
89669c58e506 INSTALLATION OF INDUCTIVE DEFINITIONS
lcp
parents: 119
diff changeset
    37
EX_FILES = ex/ROOT.ML ex/cla.ML \
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    38
	   ex/LexProd.ML ex/LexProd.thy ex/meson.ML ex/mesontest.ML\
128
89669c58e506 INSTALLATION OF INDUCTIVE DEFINITIONS
lcp
parents: 119
diff changeset
    39
	   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
    40
           ex/PropLog.ML ex/PropLog.thy ex/Puzzle.ML ex/Puzzle.thy\
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    41
           ex/Qsort.thy ex/Qsort.ML\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    42
	   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
    43
	   ex/Term.ML ex/Term.thy
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    44
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    45
SUBST_FILES = Subst/ROOT.ML Subst/AList.ML Subst/AList.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    46
              Subst/Setplus.ML Subst/Setplus.thy\
97
3f4976d8c97f HOL/Makefile: now test depends upon SUBST_FILES
lcp
parents: 78
diff changeset
    47
              Subst/Subst.ML Subst/Subst.thy\
3f4976d8c97f HOL/Makefile: now test depends upon SUBST_FILES
lcp
parents: 78
diff changeset
    48
              Subst/Unifier.ML Subst/Unifier.thy\
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    49
              Subst/UTerm.ML Subst/UTerm.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    50
              Subst/UTLemmas.ML Subst/UTLemmas.thy
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    51
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    52
$(BIN)/HOL:   $(BIN)/Pure  $(FILES) 
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    53
	if [ -d $${ISABELLEBIN:?}/Pure ];\
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    54
           	then echo Bad value for ISABELLEBIN: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    55
                	$(BIN) is the Isabelle source directory; \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    56
                	exit 1; \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    57
           	fi;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    58
	case "$(COMP)" in \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    59
	poly*)	echo 'make_database"$(BIN)/HOL"; quit();'  \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    60
			| $(COMP) $(BIN)/Pure;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    61
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/HOL ;;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    62
	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
    63
	*)	echo Bad value for ISABELLECOMP: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    64
                	$(COMP) is not poly or sml;;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    65
	esac
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    66
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    67
$(BIN)/Pure:
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    68
	cd ../Pure;  $(MAKE)
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    69
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    70
#Directories IMP and Subst also test the system
97
3f4976d8c97f HOL/Makefile: now test depends upon SUBST_FILES
lcp
parents: 78
diff changeset
    71
#Load ex/ROOT.ML last since it creates the file "test"
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    72
test:   $(BIN)/HOL  $(IMP_FILES) $(SUBST_FILES)  $(EX_FILES)
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    73
	case "$(COMP)" in \
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    74
	poly*)	echo 'use"IMP/ROOT.ML"; use"Subst/ROOT.ML"; use"ex/ROOT.ML"; quit();' \
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    75
                        | $(COMP) $(BIN)/HOL ;;\
133
4a2bb4fbc168 Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents: 129
diff changeset
    76
	sml*)	echo 'use"IMP/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
    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
.PRECIOUS:  $(BIN)/Pure  $(BIN)/HOL