src/FOLP/Makefile
author paulson
Wed, 25 Sep 1996 15:03:13 +0200
changeset 2025 9acc10ac1e1d
parent 2023 aa25f20c5d8b
child 2094 2061df98aab5
permissions -rw-r--r--
Prevention of Overflow exception (for SML/NJ) in gensym
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1007
79d316b160fa Corrected many errors in the dependencies.
lcp
parents: 953
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 (FOLP)			#
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: 1007
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: 1007
diff changeset
    11
#	make test
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1007
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: 1007
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)
337
bd39933d107b renamed theory files
clasohm
parents: 101
diff changeset
    24
FILES =  ROOT.ML IFOLP.thy IFOLP.ML FOLP.thy FOLP.ML intprover.ML simpdata.ML\
1007
79d316b160fa Corrected many errors in the dependencies.
lcp
parents: 953
diff changeset
    25
	 hypsubst.ML classical.ML simp.ML 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
337
bd39933d107b renamed theory files
clasohm
parents: 101
diff changeset
    27
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
bd39933d107b renamed theory files
clasohm
parents: 101
diff changeset
    28
	   ex/intro.ML ex/Nat.ML ex/Nat.thy ex/Prolog.ML ex/Prolog.thy\
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 98
diff changeset
    29
	   ex/prop.ML ex/quant.ML
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 98
diff changeset
    30
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
$(BIN)/FOLP:   $(BIN)/Pure  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
	poly*)	echo 'make_database"$(BIN)/FOLP"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
			| $(COMP) $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    35
                if [ "$${MAKE_HTML}" = "true" ]; \
1361
90d615b599d9 main directory is now read by exit_use_dir, too;
clasohm
parents: 1350
diff changeset
    36
                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1007
diff changeset
    37
                       | $(COMP) $(BIN)/FOLP;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    38
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    39
                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/FOLP;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    40
                else echo 'open PolyML; exit_use_dir".";' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1007
diff changeset
    41
		       | $(COMP) $(BIN)/FOLP;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1491
diff changeset
    42
                fi;\
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1491
diff changeset
    43
		discgarb -c $(BIN)/FOLP;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    44
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
1361
90d615b599d9 main directory is now read by exit_use_dir, too;
clasohm
parents: 1350
diff changeset
    45
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    46
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    47
                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/FOLP" banner;' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    48
                       | $(BIN)/Pure;\
1361
90d615b599d9 main directory is now read by exit_use_dir, too;
clasohm
parents: 1350
diff changeset
    49
                else echo 'exit_use_dir"."; xML"$(BIN)/FOLP" banner;' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1007
diff changeset
    50
                       | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1007
diff changeset
    51
                fi;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 337
diff changeset
    52
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 337
diff changeset
    53
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 98
diff changeset
    59
test:   ex/ROOT.ML  $(BIN)/FOLP  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
	case "$(COMP)" in \
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    61
	poly*)  if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    62
                then echo 'make_html := true; exit_use_dir"ex"; quit();' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    63
                       | $(COMP) $(BIN)/FOLP;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    64
                else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOLP;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    65
                fi;;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    66
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    67
                then echo 'make_html := true; exit_use_dir"ex";' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    68
                       | $(BIN)/FOLP;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    69
                else echo 'exit_use_dir"ex";' | $(BIN)/FOLP;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    70
                fi;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 337
diff changeset
    71
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 337
diff changeset
    72
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    73
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    74
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    75
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOLP