src/Pure/Makefile
author paulson
Fri May 30 15:14:59 1997 +0200 (1997-05-30)
changeset 3365 86c0d1988622
parent 2960 a6b56d03ed0d
permissions -rw-r--r--
flushOut ensures that no recent error message are lost (not certain this is
necessary)
     1 #  $Id$
     2 #########################################################################
     3 #									#
     4 #			Makefile for Isabelle (Pure)			#
     5 #									#
     6 #########################################################################
     7 
     8 #The pure part is common to all systems.  
     9 #Object-logics (like FOL) are loaded on top of it.
    10 
    11 #To make the system, cd to this directory and type  
    12 #	make -f Makefile 
    13 
    14 #Environment variable ML_DBASE specifies the initial Poly/ML database, from
    15 #  the Poly/ML distribution directory.
    16 #WARNING: Poly/ML parent databases should not be moved!
    17 
    18 #Environment variable ISABELLECOMP specifies the compiler.
    19 #Environment variable ISABELLEBIN specifies the destination directory.
    20 #For Poly/ML, ISABELLEBIN must begin with a /
    21 
    22 BIN = $(ISABELLEBIN)
    23 COMP = $(ISABELLECOMP)
    24 FILES =	POLY.ML NJ.ML NJ093.ML NJ1xx.ML ROOT.ML basis.ML library.ML\
    25 	term.ML symtab.ML type.ML sign.ML\
    26 	sequence.ML envir.ML pattern.ML unify.ML logic.ML theory.ML thm.ML\
    27 	net.ML display.ML deriv.ML drule.ML tctical.ML search.ML tactic.ML\
    28 	goals.ML axclass.ML install_pp.ML sorts.ML type_infer.ML\
    29 	NJ093.ML NJ1xx.ML ../Provers/simplifier.ML
    30 
    31 SYNTAX_FILES =	Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
    32 	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
    33 	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
    34 	Syntax/syn_ext.ML	Syntax/mixfix.ML	Syntax/symbol_font.ML\
    35 	Syntax/token_trans.ML
    36 
    37 THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
    38 	Thy/thy_syn.ML		Thy/thy_read.ML		Thy/thm_database.ML
    39 
    40 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    41 $(BIN)/Pure:   $(FILES)	 $(SYNTAX_FILES)  $(THY_FILES)	$(ML_DBASE)
    42 	@case `basename "$(COMP)"` in \
    43 	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
    44 		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
    45 		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' \
    46 		  | $(COMP) $(BIN)/Pure;\
    47 		discgarb -c $(BIN)/Pure;;\
    48 	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
    49 		then echo Bad value for ISABELLEBIN: \
    50 			$(BIN) is not a writable directory; \
    51 			exit 1; \
    52 		fi;\
    53 		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1;				     xML"$(BIN)/Pure" banner;' | $(COMP);;\
    54 	*)	echo Bad value for ISABELLECOMP: $(COMP); \
    55 		echo "   " \"`basename "$(COMP)"`\" is not poly or sml;;\
    56 	esac
    57 
    58 
    59 test: $(BIN)/Pure
    60 
    61 .PRECIOUS:  $(BIN)/Pure