src/LK/Makefile
author clasohm
Thu, 16 Sep 1993 12:20:38 +0200
changeset 0 a5a9c433f639
child 102 e04cb6295a3f
permissions -rw-r--r--
Initial revision
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)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
FILES =  ROOT.ML lk.thy lk.ML
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
$(BIN)/LK:   $(BIN)/Pure  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
	poly*)	echo 'make_database"$(BIN)/LK"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
			| $(COMP) $(BIN)/Pure;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/LK ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/LK" banner;' | $(BIN)/Pure ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
test:   ex/ROOT.ML  $(BIN)/LK
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/LK ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/LK;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
.PRECIOUS:   $(BIN)/Pure  $(BIN)/LK