src/FOL/Makefile
author lcp
Wed, 01 Jun 1994 13:18:35 +0200
changeset 409 54fcef4db0db
parent 336 5170a992ad48
child 940 bd9ab32bfa30
permissions -rw-r--r--
added test for $ISABELLEBIN=source directory, to avoid isabelle/Pure being mistaken for bin/Pure
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 (FOL)			#
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 -f Makefile 
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 -f Makefile 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
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#if it is out of date, since this Makefile does not know its dependencies!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
COMP = $(ISABELLECOMP)
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    21
FILES =  ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
	../Provers/classical.ML ../Provers/simplifier.ML ../Provers/ind.ML
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    24
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
    25
	   ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    26
	   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
    27
	   ex/quant.ML
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    28
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    30
	if [ -d $${ISABELLEBIN:?}/Pure ];\
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    31
           	then echo Bad value for ISABELLEBIN: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    32
                	$(BIN) is the Isabelle source directory; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    33
                	exit 1; \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    34
           	fi;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
			| $(COMP) $(BIN)/Pure;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    40
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    41
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    47
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/FOL;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    51
	*)	echo Bad value for ISABELLECOMP: \
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    52
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL