src/Pure/Makefile
author nipkow
Thu Jun 01 12:31:52 1995 +0200 (1995-06-01)
changeset 1140 0a804a71274a
parent 1012 db0563a1644a
child 1333 6b2352bd85f5
permissions -rw-r--r--
Added dependence on Thy/thm_database.ML
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\
wenzelm@415
    26
	drule.ML tctical.ML tactic.ML goals.ML axclass.ML install_pp.ML
clasohm@0
    27
wenzelm@241
    28
SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
wenzelm@566
    29
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
wenzelm@57
    30
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
wenzelm@415
    31
	Syntax/syn_ext.ML	Syntax/mixfix.ML
clasohm@0
    32
wenzelm@415
    33
THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
nipkow@1140
    34
	Thy/thy_syn.ML		Thy/thy_read.ML		Thy/thm_database.ML
clasohm@0
    35
clasohm@0
    36
#Uses cp rather than make_database because Poly/ML allows only 3 levels
clasohm@0
    37
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
clasohm@0
    38
	case "$(COMP)" in \
clasohm@0
    39
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
clasohm@0
    40
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
lcp@954
    41
		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' | $(COMP) $(BIN)/Pure;;\
clasohm@0
    42
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
lcp@408
    43
           	then echo Bad value for ISABELLEBIN: \
clasohm@0
    44
                	$(BIN) is not a writable directory; \
clasohm@0
    45
                	exit 1; \
clasohm@0
    46
           	fi;\
lcp@954
    47
		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1; xML"$(BIN)/Pure" banner;'\
clasohm@0
    48
			  | $(COMP);;\
lcp@408
    49
	*)	echo Bad value for ISABELLECOMP: \
lcp@408
    50
                	$(COMP) is not poly or sml;;\
clasohm@0
    51
	esac
clasohm@0
    52
clasohm@0
    53
.PRECIOUS:  $(BIN)/Pure