src/LK/Makefile
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
child 102 e04cb6295a3f
permissions -rw-r--r--
Initial revision
     1 #########################################################################
     2 #									#
     3 # 			Makefile for Isabelle (LK)			#
     4 #									#
     5 #########################################################################
     6 
     7 #To make the system, cd to this directory and type  
     8 #	make -f Makefile 
     9 #To make the system and test it on standard examples, type  
    10 #	make -f Makefile test
    11 
    12 #Environment variable ISABELLECOMP specifies the compiler.
    13 #Environment variable ISABELLEBIN specifies the destination directory.
    14 #For Poly/ML, ISABELLEBIN must begin with a /
    15 
    16 #Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
    17 #if it is out of date, since this Makefile does not know its dependencies!
    18 
    19 BIN = $(ISABELLEBIN)
    20 COMP = $(ISABELLECOMP)
    21 FILES =  ROOT.ML lk.thy lk.ML
    22 
    23 $(BIN)/LK:   $(BIN)/Pure  $(FILES) 
    24 	case "$(COMP)" in \
    25 	poly*)	echo 'make_database"$(BIN)/LK"; quit();'  \
    26 			| $(COMP) $(BIN)/Pure;\
    27 		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/LK ;;\
    28 	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/LK" banner;' | $(BIN)/Pure ;;\
    29 	*)	echo Bad value for ISABELLECOMP;;\
    30 	esac
    31 
    32 $(BIN)/Pure:
    33 	cd ../Pure;  $(MAKE)
    34 
    35 test:   ex/ROOT.ML  $(BIN)/LK
    36 	case "$(COMP)" in \
    37 	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/LK ;;\
    38 	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/LK;;\
    39 	*)	echo Bad value for ISABELLECOMP;;\
    40 	esac
    41 
    42 .PRECIOUS:   $(BIN)/Pure  $(BIN)/LK