src/Pure/Makefile
author wenzelm
Tue Aug 23 19:31:05 1994 +0200 (1994-08-23)
changeset 573 2fa5ef27bd0a
parent 566 959cb0e329f7
child 954 d3f734f66141
permissions -rw-r--r--
removed constant _constrain from Pure sig;
clasohm@0
     1
#########################################################################
clasohm@0
     2
#									#
clasohm@0
     3
# 			Makefile for Isabelle (Pure)			#
clasohm@0
     4
#									#
clasohm@0
     5
#########################################################################
clasohm@0
     6
clasohm@0
     7
#The pure part is common to all systems.  
clasohm@0
     8
#Object-logics (like FOL) are loaded on top of it.
clasohm@0
     9
clasohm@0
    10
#To make the system, cd to this directory and type  
clasohm@0
    11
#	make -f Makefile 
clasohm@0
    12
clasohm@0
    13
#Environment variable ML_DBASE specifies the initial Poly/ML database, from
clasohm@0
    14
#  the Poly/ML distribution directory.
clasohm@0
    15
#WARNING: Poly/ML parent databases should not be moved!
clasohm@0
    16
clasohm@0
    17
#Environment variable ISABELLECOMP specifies the compiler.
clasohm@0
    18
#Environment variable ISABELLEBIN specifies the destination directory.
clasohm@0
    19
#For Poly/ML, ISABELLEBIN must begin with a /
clasohm@0
    20
clasohm@0
    21
BIN = $(ISABELLEBIN)
clasohm@0
    22
COMP = $(ISABELLECOMP)
clasohm@0
    23
FILES =	POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\
clasohm@0
    24
	sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\
wenzelm@415
    25
	drule.ML tctical.ML tactic.ML goals.ML axclass.ML install_pp.ML
clasohm@0
    26
wenzelm@241
    27
SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
wenzelm@566
    28
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
wenzelm@57
    29
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
wenzelm@415
    30
	Syntax/syn_ext.ML	Syntax/mixfix.ML
clasohm@0
    31
wenzelm@415
    32
THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
wenzelm@415
    33
	Thy/thy_syn.ML		Thy/thy_read.ML
clasohm@0
    34
clasohm@0
    35
#Uses cp rather than make_database because Poly/ML allows only 3 levels
clasohm@0
    36
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
clasohm@0
    37
	case "$(COMP)" in \
clasohm@0
    38
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
clasohm@0
    39
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
clasohm@0
    40
		echo 'PolyML.use"POLY";use"ROOT";' | $(COMP) $(BIN)/Pure;;\
clasohm@0
    41
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
lcp@408
    42
           	then echo Bad value for ISABELLEBIN: \
clasohm@0
    43
                	$(BIN) is not a writable directory; \
clasohm@0
    44
                	exit 1; \
clasohm@0
    45
           	fi;\
clasohm@0
    46
		echo 'use"NJ.ML"; use"ROOT.ML"; xML"$(BIN)/Pure" banner;'\
clasohm@0
    47
			  | $(COMP);;\
lcp@408
    48
	*)	echo Bad value for ISABELLECOMP: \
lcp@408
    49
                	$(COMP) is not poly or sml;;\
clasohm@0
    50
	esac
clasohm@0
    51
clasohm@0
    52
.PRECIOUS:  $(BIN)/Pure