src/FOL/Makefile
author clasohm
Fri, 13 Oct 1995 11:48:40 +0100
changeset 1280 909079af97b7
parent 1003 6413adca7601
child 1296 ae31bb7774a7
permissions -rw-r--r--
corrected spelling of title
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1003
6413adca7601 Added Id: line
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 (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  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
#	make -f Makefile 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
#	make -f Makefile test
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#For Poly/ML, ISABELLEBIN must begin with a /
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)
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    22
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
    23
	 ../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
    24
	 ../Provers/simplifier.ML ../Provers/splitter.ML ../Provers/ind.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    26
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
    27
	   ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    28
	   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
    29
	   ex/quant.ML
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    30
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    32
	if [ -d $${ISABELLEBIN:?}/Pure ];\
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    33
           	then echo Bad value for ISABELLEBIN: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    34
                	$(BIN) is the Isabelle source directory; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    35
                	exit 1; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    36
           	fi;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
			| $(COMP) $(BIN)/Pure;\
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    40
		echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/FOL;;\
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    41
	sml*)	echo 'exit_use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    42
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    43
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    49
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
	case "$(COMP)" in \
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    51
	poly*)	echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    52
	sml*)	echo 'exit_use"ex/ROOT.ML";' | $(BIN)/FOL;;\
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
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL