src/LK/Makefile
author clasohm
Fri, 22 Apr 1994 21:47:22 +0200
changeset 338 e3489bc1f857
parent 102 e04cb6295a3f
child 468 3dd1dcb509ac
permissions -rw-r--r--
renamed theory files
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 (LK)			#
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)
338
e3489bc1f857 renamed theory files
clasohm
parents: 102
diff changeset
    21
FILES =  ROOT.ML LK.thy LK.ML
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    22
EX_FILES = ex/ROOT.ML ex/hardquant.ML ex/prop.ML ex/quant.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
$(BIN)/LK:   $(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)/LK"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
			| $(COMP) $(BIN)/Pure;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/LK ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/LK" banner;' | $(BIN)/Pure ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 0
diff changeset
    36
test:   ex/ROOT.ML  $(BIN)/LK  $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/LK ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/LK;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
.PRECIOUS:   $(BIN)/Pure  $(BIN)/LK