src/Pure/Makefile
author lcp
Tue, 18 Jan 1994 15:57:40 +0100
changeset 230 ec8a2b6aa8a7
parent 223 7892b76adb5b
child 241 a8ff0932d78a
permissions -rw-r--r--
Many other files modified as follows: s|Sign.cterm|cterm|g s|Sign.ctyp|ctyp|g s|Sign.rep_cterm|rep_cterm|g s|Sign.rep_ctyp|rep_ctyp|g s|Sign.pprint_cterm|pprint_cterm|g s|Sign.pprint_ctyp|pprint_ctyp|g s|Sign.string_of_cterm|string_of_cterm|g s|Sign.string_of_ctyp|string_of_ctyp|g s|Sign.term_of|term_of|g s|Sign.typ_of|typ_of|g s|Sign.read_cterm|read_cterm|g s|Sign.read_insts|read_insts|g s|Sign.cfun|cterm_fun|g

#########################################################################
#									#
# 			Makefile for Isabelle (Pure)			#
#									#
#########################################################################

#The pure part is common to all systems.  
#Object-logics (like FOL) are loaded on top of it.

#To make the system, cd to this directory and type  
#	make -f Makefile 

#Environment variable ML_DBASE specifies the initial Poly/ML database, from
#  the Poly/ML distribution directory.
#WARNING: Poly/ML parent databases should not be moved!

#Environment variable ISABELLECOMP specifies the compiler.
#Environment variable ISABELLEBIN specifies the destination directory.
#For Poly/ML, ISABELLEBIN must begin with a /

BIN = $(ISABELLEBIN)
COMP = $(ISABELLECOMP)
FILES =	POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\
	sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\
	drule.ML tctical.ML tactic.ML goals.ML install_pp.ML

SYNTAX_FILES =  Syntax/ROOT.ML	Syntax/ast.ML		Syntax/xgram.ML\
	Syntax/extension.ML	Syntax/lexicon.ML\
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/sextension.ML\
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
	Syntax/earley0A.ML

THY_FILES = Thy/ROOT.ML Thy/scan.ML Thy/parse.ML Thy/syntax.ML Thy/read.ML

#Uses cp rather than make_database because Poly/ML allows only 3 levels
$(BIN)/Pure:   $(FILES)  $(SYNTAX_FILES)  $(THY_FILES)  $(ML_DBASE)
	case "$(COMP)" in \
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
		echo 'PolyML.use"POLY";use"ROOT";' | $(COMP) $(BIN)/Pure;;\
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
           	then echo Bad value for ISABELLEBIN : \
                	$(BIN) is not a writable directory; \
                	exit 1; \
           	fi;\
		echo 'use"NJ.ML"; use"ROOT.ML"; xML"$(BIN)/Pure" banner;'\
			  | $(COMP);;\
	*)	echo Bad value for ISABELLECOMP;;\
	esac

.PRECIOUS:  $(BIN)/Pure