src/FOL/Makefile
author clasohm
Tue, 21 Nov 1995 13:40:36 +0100
changeset 1356 dc8acbc64062
parent 1350 5bf4a54ba25f
child 1491 38a14548baad
permissions -rw-r--r--
removed make_chart from ROOT.ML; replaced exit_use by exit_use_dir
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
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    28
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    29
	   ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    30
	   ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    31
	   ex/quant.ML
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    32
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    34
	if [ -d $${ISABELLEBIN:?}/Pure ];\
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    35
           	then echo Bad value for ISABELLEBIN: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    36
                	$(BIN) is the Isabelle source directory; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    37
                	exit 1; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    38
           	fi;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	case "$(COMP)" in \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    40
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    41
		  | $(COMP) $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    42
                if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    43
                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
    44
                       | $(COMP) $(BIN)/FOL;\
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    45
		else echo 'open PolyML; exit_use_dir".";' \
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    46
                       | $(COMP) $(BIN)/FOL;\
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    47
                fi;;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    48
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ];\
1356
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    49
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;\
dc8acbc64062 removed make_chart from ROOT.ML;
clasohm
parents: 1350
diff changeset
    50
                else echo 'exit_use_dir"."; xML"$(BIN)/FOL" banner;' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    51
                       | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    52
                fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    53
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    54
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    60
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
	case "$(COMP)" in \
1350
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1296
diff changeset
    62
	poly*)	echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOL ;;\
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1296
diff changeset
    63
	sml*)	echo 'exit_use_dir"ex";' | $(BIN)/FOL;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    64
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    65
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    66
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    67
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL