Makefile
author lcp
Wed, 01 Jun 1994 13:24:54 +0200
changeset 78 f5e5a6b8c4d3
parent 70 9459592608e2
child 97 3f4976d8c97f
permissions -rw-r--r--
added test for $ISABELLEBIN=source directory, to avoid isabelle/Pure being mistaken for bin/Pure
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 \
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    22
	fun.ML Set.thy Set.ML subset.ML equalities.ML \
70
9459592608e2 renamed theory files
clasohm
parents: 69
diff changeset
    23
	Prod.thy Prod.ML Sum.thy Sum.ML WF.thy WF.ML \
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    24
	mono.ML Lfp.thy Lfp.ML Gfp.thy Gfp.ML Nat.thy Nat.ML \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    25
        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
    26
        LList.thy LList.ML List.thy List.ML \
70
9459592608e2 renamed theory files
clasohm
parents: 69
diff changeset
    27
	Datatype.ML \
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    28
	../Provers/classical.ML ../Provers/simplifier.ML \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    29
	../Provers/splitter.ML ../Provers/ind.ML
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    30
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    31
EX_FILES = ex/ROOT.ML ex/cla.ML ex/Finite.ML ex/Finite.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    32
	   ex/LexProd.ML ex/LexProd.thy ex/meson.ML ex/mesontest.ML\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    33
	   ex/MT.ML ex/MT.thy ex/PL.ML ex/PL.thy ex/Puzzle.ML ex/Puzzle.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    34
           ex/Qsort.thy ex/Qsort.ML\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    35
	   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
    36
	   ex/Term.ML ex/Term.thy
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    37
69
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    38
SUBST_FILES = Subst/ROOT.ML Subst/AList.ML Subst/AList.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    39
              Subst/Setplus.ML Subst/Setplus.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    40
              Subst/Subst.ML Subst/subst.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    41
              Subst/Unifier.ML Subst/unifier.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    42
              Subst/UTerm.ML Subst/UTerm.thy\
44b82132fe82 renamed theory files
clasohm
parents: 59
diff changeset
    43
              Subst/UTLemmas.ML Subst/UTLemmas.thy
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    44
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    45
$(BIN)/HOL:   $(BIN)/Pure  $(FILES) 
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    46
	if [ -d $${ISABELLEBIN:?}/Pure ];\
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    47
           	then echo Bad value for ISABELLEBIN: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    48
                	$(BIN) is the Isabelle source directory; \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    49
                	exit 1; \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    50
           	fi;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    51
	case "$(COMP)" in \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    52
	poly*)	echo 'make_database"$(BIN)/HOL"; quit();'  \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    53
			| $(COMP) $(BIN)/Pure;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    54
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/HOL ;;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    55
	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
    56
	*)	echo Bad value for ISABELLECOMP: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    57
                	$(COMP) is not poly or sml;;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    58
	esac
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    59
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    60
$(BIN)/Pure:
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    61
	cd ../Pure;  $(MAKE)
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    62
16
187b73f64023 Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    63
test:   ex/ROOT.ML  $(BIN)/HOL  $(EX_FILES) 
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    64
	case "$(COMP)" in \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    65
	poly*)	echo 'use"ex/ROOT.ML"; use"Subst/ROOT.ML"; quit();' \
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    66
                        | $(COMP) $(BIN)/HOL ;;\
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    67
	sml*)	echo 'use"ex/ROOT.ML";use"Subst/ROOT.ML";' | $(BIN)/HOL;;\
78
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    68
	*)	echo Bad value for ISABELLECOMP: \
f5e5a6b8c4d3 added test for $ISABELLEBIN=source directory, to
lcp
parents: 70
diff changeset
    69
                	$(COMP) is not poly or sml;;\
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    70
	esac
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    71
7949f97df77a Initial revision
clasohm
parents:
diff changeset
    72
.PRECIOUS:  $(BIN)/Pure  $(BIN)/HOL