src/Pure/Makefile
author paulson
Wed Sep 25 11:10:31 1996 +0200 (1996-09-25)
changeset 2023 aa25f20c5d8b
parent 1671 608196238072
child 2094 2061df98aab5
permissions -rw-r--r--
Calls discgarb -c to realize dramatic space savings!
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\
paulson@1527
    25
	sequence.ML envir.ML pattern.ML unify.ML logic.ML theory.ML thm.ML\
paulson@1594
    26
	net.ML display.ML deriv.ML drule.ML tctical.ML search.ML tactic.ML\
paulson@1582
    27
        goals.ML axclass.ML install_pp.ML\
clasohm@1480
    28
        NJ093.ML NJ1xx.ML ../Provers/simplifier.ML
clasohm@0
    29
wenzelm@241
    30
SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
wenzelm@566
    31
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
wenzelm@57
    32
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
wenzelm@415
    33
	Syntax/syn_ext.ML	Syntax/mixfix.ML
clasohm@0
    34
wenzelm@415
    35
THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
nipkow@1140
    36
	Thy/thy_syn.ML		Thy/thy_read.ML		Thy/thm_database.ML
clasohm@0
    37
clasohm@0
    38
#Uses cp rather than make_database because Poly/ML allows only 3 levels
clasohm@0
    39
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
clasohm@0
    40
	case "$(COMP)" in \
clasohm@0
    41
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
clasohm@0
    42
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
clasohm@1480
    43
		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' \
paulson@2023
    44
                  | $(COMP) $(BIN)/Pure;\
paulson@2023
    45
		discgarb -c $(BIN)/Pure;;\
clasohm@0
    46
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
lcp@408
    47
           	then echo Bad value for ISABELLEBIN: \
clasohm@0
    48
                	$(BIN) is not a writable directory; \
clasohm@0
    49
                	exit 1; \
clasohm@0
    50
           	fi;\
clasohm@1480
    51
		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1;                                    xML"$(BIN)/Pure" banner;' | $(COMP);;\
lcp@408
    52
	*)	echo Bad value for ISABELLECOMP: \
lcp@408
    53
                	$(COMP) is not poly or sml;;\
clasohm@0
    54
	esac
clasohm@0
    55
oheimb@1671
    56
oheimb@1671
    57
test: $(BIN)/Pure
oheimb@1671
    58
	
oheimb@1671
    59
clasohm@0
    60
.PRECIOUS:  $(BIN)/Pure