src/FOLP/Makefile
author paulson
Fri Feb 16 18:00:47 1996 +0100 (1996-02-16)
changeset 1512 ce37c64244c0
parent 1491 38a14548baad
child 2023 aa25f20c5d8b
permissions -rw-r--r--
Elimination of fully-functorial style.
Type tactic changed to a type abbrevation (from a datatype).
Constructor tactic and function apply deleted.
     1 #  $Id$
     2 #########################################################################
     3 #									#
     4 # 			Makefile for Isabelle (FOLP)			#
     5 #									#
     6 #########################################################################
     7 
     8 #To make the system, cd to this directory and type  
     9 #	make
    10 #To make the system and test it on standard examples, type  
    11 #	make test
    12 #To generate HTML files for every theory, set the environment variable
    13 #MAKE_HTML or add the parameter "MAKE_HTML=".
    14 
    15 #Environment variable ISABELLECOMP specifies the compiler.
    16 #Environment variable ISABELLEBIN specifies the destination directory.
    17 #For Poly/ML, ISABELLEBIN must begin with a /
    18 
    19 #Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
    20 #if it is out of date, since this Makefile does not know its dependencies!
    21 
    22 BIN = $(ISABELLEBIN)
    23 COMP = $(ISABELLECOMP)
    24 FILES =  ROOT.ML IFOLP.thy IFOLP.ML FOLP.thy FOLP.ML intprover.ML simpdata.ML\
    25 	 hypsubst.ML classical.ML simp.ML 
    26 
    27 EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
    28 	   ex/intro.ML ex/Nat.ML ex/Nat.thy ex/Prolog.ML ex/Prolog.thy\
    29 	   ex/prop.ML ex/quant.ML
    30 
    31 $(BIN)/FOLP:   $(BIN)/Pure  $(FILES) 
    32 	case "$(COMP)" in \
    33 	poly*)	echo 'make_database"$(BIN)/FOLP"; quit();'  \
    34 			| $(COMP) $(BIN)/Pure;\
    35                 if [ "$${MAKE_HTML}" = "true" ]; \
    36                 then echo 'open PolyML; make_html := true; exit_use_dir".";' \
    37                        | $(COMP) $(BIN)/FOLP;\
    38 		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    39                 then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/FOLP;\
    40                 else echo 'open PolyML; exit_use_dir".";' \
    41 		       | $(COMP) $(BIN)/FOLP;\
    42                 fi;;\
    43 	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
    44                 then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\
    45                 elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
    46                 then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/FOLP" banner;' \
    47                        | $(BIN)/Pure;\
    48                 else echo 'exit_use_dir"."; xML"$(BIN)/FOLP" banner;' \
    49                        | $(BIN)/Pure;\
    50                 fi;;\
    51 	*)	echo Bad value for ISABELLECOMP: \
    52                 	$(COMP) is not poly or sml;;\
    53 	esac
    54 
    55 $(BIN)/Pure:
    56 	cd ../Pure;  $(MAKE)
    57 
    58 test:   ex/ROOT.ML  $(BIN)/FOLP  $(EX_FILES) 
    59 	case "$(COMP)" in \
    60 	poly*)  if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    61                 then echo 'make_html := true; exit_use_dir"ex"; quit();' \
    62                        | $(COMP) $(BIN)/FOLP;\
    63                 else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOLP;\
    64                 fi;;\
    65 	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    66                 then echo 'make_html := true; exit_use_dir"ex";' \
    67                        | $(BIN)/FOLP;\
    68                 else echo 'exit_use_dir"ex";' | $(BIN)/FOLP;\
    69                 fi;;\
    70 	*)	echo Bad value for ISABELLECOMP: \
    71                 	$(COMP) is not poly or sml;;\
    72 	esac
    73 
    74 .PRECIOUS:   $(BIN)/Pure  $(BIN)/FOLP