src/Pure/Makefile
author wenzelm
Fri Oct 15 12:49:33 1993 +0100 (1993-10-15)
changeset 57 87e14d7f20dc
parent 0 a5a9c433f639
child 223 7892b76adb5b
permissions -rw-r--r--
added parser.ML, install_pp.ML
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@57
    25
	drule.ML tctical.ML tactic.ML goals.ML install_pp.ML
clasohm@0
    26
clasohm@0
    27
SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/xgram.ML\
clasohm@0
    28
	Syntax/extension.ML	Syntax/lexicon.ML	Syntax/parse_tree.ML\
wenzelm@57
    29
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/sextension.ML\
wenzelm@57
    30
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
wenzelm@57
    31
	Syntax/earley0A.ML
clasohm@0
    32
clasohm@0
    33
THY_FILES = Thy/ROOT.ML Thy/scan.ML Thy/parse.ML Thy/syntax.ML 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:?} ')' ];\
clasohm@0
    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);;\
clasohm@0
    48
	*)	echo Bad value for ISABELLECOMP;;\
clasohm@0
    49
	esac
clasohm@0
    50
clasohm@0
    51
.PRECIOUS:  $(BIN)/Pure