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