src/Pure/Makefile
author nipkow
Thu, 01 Jun 1995 12:31:52 +0200
changeset 1140 0a804a71274a
parent 1012 db0563a1644a
child 1333 6b2352bd85f5
permissions -rw-r--r--
Added dependence on Thy/thm_database.ML
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1012
db0563a1644a Added Id: line
lcp
parents: 954
diff changeset
     1
#  $Id$
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
# 			Makefile for Isabelle (Pure)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#The pure part is common to all systems.  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
#Object-logics (like FOL) are loaded on top of it.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
#To make the system, cd to this directory and type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
#	make -f Makefile 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#Environment variable ML_DBASE specifies the initial Poly/ML database, from
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#  the Poly/ML distribution directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#WARNING: Poly/ML parent databases should not be moved!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
COMP = $(ISABELLECOMP)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
FILES =	POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
	sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\
415
e5470bf81350 added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents: 408
diff changeset
    26
	drule.ML tctical.ML tactic.ML goals.ML axclass.ML install_pp.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
241
a8ff0932d78a changed SYNTAX_FILES;
wenzelm
parents: 223
diff changeset
    28
SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
566
959cb0e329f7 replaced sextension.ML by syn_trans.ML;
wenzelm
parents: 415
diff changeset
    29
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
57
87e14d7f20dc added parser.ML, install_pp.ML
wenzelm
parents: 0
diff changeset
    30
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
415
e5470bf81350 added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents: 408
diff changeset
    31
	Syntax/syn_ext.ML	Syntax/mixfix.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
415
e5470bf81350 added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents: 408
diff changeset
    33
THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
1140
0a804a71274a Added dependence on Thy/thm_database.ML
nipkow
parents: 1012
diff changeset
    34
	Thy/thy_syn.ML		Thy/thy_read.ML		Thy/thm_database.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
954
d3f734f66141 Now the "use" call has an exception handler, for prompt failure
lcp
parents: 566
diff changeset
    41
		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' | $(COMP) $(BIN)/Pure;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
408
93e2b7d5bcc4 Improved error messages
lcp
parents: 407
diff changeset
    43
           	then echo Bad value for ISABELLEBIN: \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
                	$(BIN) is not a writable directory; \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
                	exit 1; \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
           	fi;\
954
d3f734f66141 Now the "use" call has an exception handler, for prompt failure
lcp
parents: 566
diff changeset
    47
		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1; xML"$(BIN)/Pure" banner;'\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
			  | $(COMP);;\
408
93e2b7d5bcc4 Improved error messages
lcp
parents: 407
diff changeset
    49
	*)	echo Bad value for ISABELLECOMP: \
93e2b7d5bcc4 Improved error messages
lcp
parents: 407
diff changeset
    50
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
.PRECIOUS:  $(BIN)/Pure