src/FOL/Makefile
author paulson
Wed, 09 Oct 1996 13:32:33 +0200
changeset 2073 fb0655539d05
parent 2023 aa25f20c5d8b
child 2094 2061df98aab5
permissions -rw-r--r--
New unified treatment of sequent calculi by Sara Kalvala combines the old LK and Modal with the new ILL (Int. Linear Logic)
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;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1550
diff changeset
    48
                fi;\
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1550
diff changeset
    49
		discgarb -c $(BIN)/FOL;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    50
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    51
                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
    52
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    53
                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
    54
                       | $(BIN)/Pure;\
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    55
                else echo 'exit_use_dir"."; xML"$(BIN)/FOL" banner;' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    56
                       | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    57
                fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    58
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    59
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    65
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    66
	case "$(COMP)" in \
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    67
	poly*)  if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    68
                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
    69
                       | $(COMP) $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    70
                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
    71
                fi;;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    72
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    73
                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
    74
                       | $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    75
                else echo 'exit_use_dir"ex";' | $(BIN)/FOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    76
                fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    77
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    78
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    79
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    81
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL