src/Pure/Makefile
author nipkow
Fri Mar 14 10:35:30 1997 +0100 (1997-03-14)
changeset 2792 6c17c5ec3d8b
parent 2692 484ec6ca0c50
child 2960 a6b56d03ed0d
permissions -rw-r--r--
Avoid eta-contraction in the simplifier.
Instead the net needs to eta-contract the object.
Also added a special function loose_bvar1(i,t) in term.ML.
lcp@1012
     1
#  $Id$
clasohm@0
     2
#########################################################################
clasohm@0
     3
#									#
paulson@2094
     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)
paulson@2235
    24
FILES =	POLY.ML NJ.ML NJ093.ML NJ1xx.ML ROOT.ML basis.ML library.ML\
paulson@2235
    25
	term.ML symtab.ML type.ML sign.ML\
paulson@1527
    26
	sequence.ML envir.ML pattern.ML unify.ML logic.ML theory.ML thm.ML\
paulson@1594
    27
	net.ML display.ML deriv.ML drule.ML tctical.ML search.ML tactic.ML\
paulson@2094
    28
	goals.ML axclass.ML install_pp.ML\
paulson@2094
    29
	NJ093.ML NJ1xx.ML ../Provers/simplifier.ML
clasohm@0
    30
paulson@2094
    31
SYNTAX_FILES =	Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
wenzelm@566
    32
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
wenzelm@57
    33
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
wenzelm@2692
    34
	Syntax/syn_ext.ML	Syntax/mixfix.ML	Syntax/symbol_font.ML\
wenzelm@2692
    35
	Syntax/token_trans.ML
clasohm@0
    36
wenzelm@415
    37
THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
nipkow@1140
    38
	Thy/thy_syn.ML		Thy/thy_read.ML		Thy/thm_database.ML
clasohm@0
    39
clasohm@0
    40
#Uses cp rather than make_database because Poly/ML allows only 3 levels
paulson@2094
    41
$(BIN)/Pure:   $(FILES)	 $(SYNTAX_FILES)  $(THY_FILES)	$(ML_DBASE)
paulson@2235
    42
	@case `basename "$(COMP)"` in \
clasohm@0
    43
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
clasohm@0
    44
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
clasohm@1480
    45
		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' \
paulson@2094
    46
		  | $(COMP) $(BIN)/Pure;\
paulson@2023
    47
		discgarb -c $(BIN)/Pure;;\
clasohm@0
    48
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
paulson@2094
    49
		then echo Bad value for ISABELLEBIN: \
paulson@2094
    50
			$(BIN) is not a writable directory; \
paulson@2094
    51
			exit 1; \
paulson@2094
    52
		fi;\
paulson@2094
    53
		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1;				     xML"$(BIN)/Pure" banner;' | $(COMP);;\
paulson@2235
    54
	*)	echo Bad value for ISABELLECOMP: $(COMP); \
paulson@2235
    55
		echo "   " \"`basename "$(COMP)"`\" is not poly or sml;;\
clasohm@0
    56
	esac
clasohm@0
    57
oheimb@1671
    58
oheimb@1671
    59
test: $(BIN)/Pure
oheimb@1671
    60
paulson@2094
    61
.PRECIOUS:  $(BIN)/Pure