src/Pure/Makefile
author lcp
Tue, 18 Jan 1994 15:57:40 +0100
changeset 230 ec8a2b6aa8a7
parent 223 7892b76adb5b
child 241 a8ff0932d78a
permissions -rw-r--r--
Many other files modified as follows: s|Sign.cterm|cterm|g s|Sign.ctyp|ctyp|g s|Sign.rep_cterm|rep_cterm|g s|Sign.rep_ctyp|rep_ctyp|g s|Sign.pprint_cterm|pprint_cterm|g s|Sign.pprint_ctyp|pprint_ctyp|g s|Sign.string_of_cterm|string_of_cterm|g s|Sign.string_of_ctyp|string_of_ctyp|g s|Sign.term_of|term_of|g s|Sign.typ_of|typ_of|g s|Sign.read_cterm|read_cterm|g s|Sign.read_insts|read_insts|g s|Sign.cfun|cterm_fun|g
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
# 			Makefile for Isabelle (Pure)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
#The pure part is common to all systems.  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#Object-logics (like FOL) are loaded on top of it.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system, cd to this directory and type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
#	make -f Makefile 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
#Environment variable ML_DBASE specifies the initial Poly/ML database, from
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#  the Poly/ML distribution directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#WARNING: Poly/ML parent databases should not be moved!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
COMP = $(ISABELLECOMP)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
FILES =	POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
	sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\
57
87e14d7f20dc added parser.ML, install_pp.ML
wenzelm
parents: 0
diff changeset
    25
	drule.ML tctical.ML tactic.ML goals.ML install_pp.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/xgram.ML\
223
7892b76adb5b removed Syntax/parse_tree.ML;
wenzelm
parents: 57
diff changeset
    28
	Syntax/extension.ML	Syntax/lexicon.ML\
57
87e14d7f20dc added parser.ML, install_pp.ML
wenzelm
parents: 0
diff changeset
    29
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/sextension.ML\
87e14d7f20dc added parser.ML, install_pp.ML
wenzelm
parents: 0
diff changeset
    30
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
87e14d7f20dc added parser.ML, install_pp.ML
wenzelm
parents: 0
diff changeset
    31
	Syntax/earley0A.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
THY_FILES = Thy/ROOT.ML Thy/scan.ML Thy/parse.ML Thy/syntax.ML Thy/read.ML
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
		echo 'PolyML.use"POLY";use"ROOT";' | $(COMP) $(BIN)/Pure;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
           	then echo Bad value for ISABELLEBIN : \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
                	$(BIN) is not a writable directory; \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
                	exit 1; \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
           	fi;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
		echo 'use"NJ.ML"; use"ROOT.ML"; xML"$(BIN)/Pure" banner;'\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
			  | $(COMP);;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
.PRECIOUS:  $(BIN)/Pure