src/LK/Makefile
author paulson
Wed, 09 Oct 1996 13:32:33 +0200
changeset 2073 fb0655539d05
parent 2023 aa25f20c5d8b
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:
1297
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
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 (LK)			#
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  
1297
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
diff changeset
     9
#	make
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type  
1297
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
diff changeset
    11
#	make test
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
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)
338
e3489bc1f857 renamed theory files
clasohm
parents: 102
diff changeset
    24
FILES =  ROOT.ML LK.thy LK.ML
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    25
EX_FILES = ex/ROOT.ML ex/hardquant.ML ex/prop.ML ex/quant.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
$(BIN)/LK:   $(BIN)/Pure  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
	poly*)	echo 'make_database"$(BIN)/LK"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
			| $(COMP) $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    31
                if [ "$${MAKE_HTML}" = "true" ]; \
1361
90d615b599d9 main directory is now read by exit_use_dir, too;
clasohm
parents: 1297
diff changeset
    32
                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
1297
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
diff changeset
    33
                       | $(COMP) $(BIN)/LK;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    34
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    35
                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/LK;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    36
                else echo 'open PolyML; exit_use_dir".";' | $(COMP) $(BIN)/LK;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1491
diff changeset
    37
                fi;\
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1491
diff changeset
    38
		discgarb -c $(BIN)/LK;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    39
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
1361
90d615b599d9 main directory is now read by exit_use_dir, too;
clasohm
parents: 1297
diff changeset
    40
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/LK" banner;' | $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    41
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    42
                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/LK" banner;' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1361
diff changeset
    43
                       | $(BIN)/Pure;\
1361
90d615b599d9 main directory is now read by exit_use_dir, too;
clasohm
parents: 1297
diff changeset
    44
                else echo 'exit_use_dir"."; xML"$(BIN)/LK" banner;' \
1297
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
diff changeset
    45
                       | $(BIN)/Pure;\
7ac266cf82d0 added calls of init_html and make_chart;
clasohm
parents: 953
diff changeset
    46
                fi;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    47
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    48
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    54
test:   ex/ROOT.ML  $(BIN)/LK  $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
	case "$(COMP)" in \
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    56
	poly*)	echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/LK ;;\
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    57
	sml*)	echo 'exit_use"ex/ROOT.ML";' | $(BIN)/LK;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    58
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 338
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
.PRECIOUS:   $(BIN)/Pure  $(BIN)/LK