src/Pure/Makefile
changeset 1480 85ecd3439e01
parent 1333 6b2352bd85f5
child 1527 bfbadb70d794
equal deleted inserted replaced
1479:21eb5e156d91 1480:85ecd3439e01
    22 BIN = $(ISABELLEBIN)
    22 BIN = $(ISABELLEBIN)
    23 COMP = $(ISABELLECOMP)
    23 COMP = $(ISABELLECOMP)
    24 FILES =	POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\
    24 FILES =	POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\
    25 	sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\
    25 	sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\
    26 	drule.ML tctical.ML tactic.ML goals.ML axclass.ML install_pp.ML\
    26 	drule.ML tctical.ML tactic.ML goals.ML axclass.ML install_pp.ML\
    27         ../Provers/simplifier.ML
    27         NJ093.ML NJ1xx.ML ../Provers/simplifier.ML
    28 
    28 
    29 SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
    29 SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
    30 	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
    30 	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
    31 	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
    31 	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
    32 	Syntax/syn_ext.ML	Syntax/mixfix.ML
    32 	Syntax/syn_ext.ML	Syntax/mixfix.ML
    37 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    37 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    38 $(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
    38 $(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
    39 	case "$(COMP)" in \
    39 	case "$(COMP)" in \
    40 	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
    40 	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
    41 		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
    41 		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
    42 		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' | $(COMP) $(BIN)/Pure;;\
    42 		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' \
       
    43                   | $(COMP) $(BIN)/Pure;;\
    43 	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
    44 	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
    44            	then echo Bad value for ISABELLEBIN: \
    45            	then echo Bad value for ISABELLEBIN: \
    45                 	$(BIN) is not a writable directory; \
    46                 	$(BIN) is not a writable directory; \
    46                 	exit 1; \
    47                 	exit 1; \
    47            	fi;\
    48            	fi;\
    48 		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1; xML"$(BIN)/Pure" banner;'\
    49 		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1;                                    xML"$(BIN)/Pure" banner;' | $(COMP);;\
    49 			  | $(COMP);;\
       
    50 	*)	echo Bad value for ISABELLECOMP: \
    50 	*)	echo Bad value for ISABELLECOMP: \
    51                 	$(COMP) is not poly or sml;;\
    51                 	$(COMP) is not poly or sml;;\
    52 	esac
    52 	esac
    53 
    53 
    54 .PRECIOUS:  $(BIN)/Pure  
    54 .PRECIOUS:  $(BIN)/Pure