src/Pure/Makefile
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
child 57 87e14d7f20dc
permissions -rw-r--r--
Initial revision
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\
clasohm@0
    25
	drule.ML tctical.ML tactic.ML goals.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\
clasohm@0
    29
	Syntax/earley0A.ML	Syntax/type_ext.ML	Syntax/sextension.ML\
clasohm@0
    30
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML
clasohm@0
    31
clasohm@0
    32
THY_FILES = Thy/ROOT.ML Thy/scan.ML Thy/parse.ML Thy/syntax.ML Thy/read.ML
clasohm@0
    33
clasohm@0
    34
#Uses cp rather than make_database because Poly/ML allows only 3 levels
clasohm@0
    35
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
clasohm@0
    36
	case "$(COMP)" in \
clasohm@0
    37
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
clasohm@0
    38
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
clasohm@0
    39
		echo 'PolyML.use"POLY";use"ROOT";' | $(COMP) $(BIN)/Pure;;\
clasohm@0
    40
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
clasohm@0
    41
           	then echo Bad value for ISABELLEBIN : \
clasohm@0
    42
                	$(BIN) is not a writable directory; \
clasohm@0
    43
                	exit 1; \
clasohm@0
    44
           	fi;\
clasohm@0
    45
		echo 'use"NJ.ML"; use"ROOT.ML"; xML"$(BIN)/Pure" banner;'\
clasohm@0
    46
			  | $(COMP);;\
clasohm@0
    47
	*)	echo Bad value for ISABELLECOMP;;\
clasohm@0
    48
	esac
clasohm@0
    49
clasohm@0
    50
.PRECIOUS:  $(BIN)/Pure