src/Cube/Makefile
author clasohm
Tue, 24 Oct 1995 14:45:35 +0100
changeset 1294 1358dc040edb
parent 953 17d7fad9c9a2
child 1296 ae31bb7774a7
permissions -rw-r--r--
added calls of init_html and make_chart; added usage of qed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
# 			Makefile for Isabelle (Cube)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
#To make the system, cd to this directory and type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#	make 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
#To make the system and test it on standard examples, type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#	make test
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#WARNING: Poly/ML databases may fail if copied or moved!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
#if it is out of date, since this Makefile does not know its dependencies!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
COMP = $(ISABELLECOMP)
335
5623ca25803f renamed theory files
clasohm
parents: 101
diff changeset
    22
FILES = 	ROOT.ML  Cube.thy  Cube.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
$(BIN)/Cube:   $(BIN)/Pure  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
	poly*)	echo 'make_database"$(BIN)/Cube"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
			| $(COMP) $(BIN)/Pure;\
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    28
		echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/Cube ;;\
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    29
	sml*)	echo 'exit_use"ROOT.ML"; xML"$(BIN)/Cube" banner;' | $(BIN)/Pure ;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 335
diff changeset
    30
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 335
diff changeset
    31
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
test:   ex.ML $(BIN)/Cube
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	case "$(COMP)" in \
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    39
	poly*)	echo 'exit_use"ex.ML"; quit();' | $(COMP) $(BIN)/Cube ;;\
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    40
	sml*)	echo 'exit_use"ex.ML";' | $(BIN)/Cube;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 335
diff changeset
    41
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 335
diff changeset
    42
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
.PRECIOUS:  $(BIN)/Pure  $(BIN)/Cube