src/FOL/Makefile
author paulson
Wed, 06 Mar 1996 10:26:43 +0100
changeset 1550 f945e3a96b35
parent 1491 38a14548baad
child 2023 aa25f20c5d8b
permissions -rw-r--r--
EX_FILES includes new oracle examples, and uses the standard abbreviation convention.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
     1
# $Id$
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
# 			Makefile for Isabelle (FOL)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#To make the system, cd to this directory and type  
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
     9
#	make
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type  
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    11
#	make test
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    13
#MAKE_HTML or add the parameter "MAKE_HTML=".
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
#if it is out of date, since this Makefile does not know its dependencies!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
COMP = $(ISABELLECOMP)
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    24
FILES =  ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    25
	 ../Provers/hypsubst.ML ../Provers/classical.ML \
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    26
	 ../Provers/simplifier.ML ../Provers/splitter.ML ../Provers/ind.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
1550
f945e3a96b35 EX_FILES includes new oracle examples, and uses the
paulson
parents: 1491
diff changeset
    28
EX_NAMES = If List Nat Nat2 Prolog declIffOracle IffOracle
f945e3a96b35 EX_FILES includes new oracle examples, and uses the
paulson
parents: 1491
diff changeset
    29
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML  ex/int.ML ex/intro.ML\
f945e3a96b35 EX_FILES includes new oracle examples, and uses the
paulson
parents: 1491
diff changeset
    30
	   ex/prop.ML ex/quant.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML)
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    31
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    33
	if [ -d $${ISABELLEBIN:?}/Pure ];\
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    34
           	then echo Bad value for ISABELLEBIN: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    35
                	$(BIN) is the Isabelle source directory; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    36
                	exit 1; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    37
           	fi;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	case "$(COMP)" in \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    39
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    40
		  | $(COMP) $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    41
                if [ "$${MAKE_HTML}" = "true" ]; \
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    42
                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    43
                       | $(COMP) $(BIN)/FOL;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    44
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    45
                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    46
                else echo 'open PolyML; exit_use_dir".";' \
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    47
                       | $(COMP) $(BIN)/FOL;\
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    48
                fi;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    49
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    50
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    51
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    52
                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/FOL" banner;' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    53
                       | $(BIN)/Pure;\
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    54
                else echo 'exit_use_dir"."; xML"$(BIN)/FOL" banner;' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    55
                       | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    56
                fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    57
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    58
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    64
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
	case "$(COMP)" in \
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    66
	poly*)  if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    67
                then echo 'make_html := true; exit_use_dir"ex"; quit();' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    68
                       | $(COMP) $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    69
                else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    70
                fi;;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    71
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    72
                then echo 'make_html := true; exit_use_dir"ex";' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    73
                       | $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    74
                else echo 'exit_use_dir"ex";' | $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    75
                fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    76
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    77
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    78
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    79
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL