src/Pure/Makefile
author wenzelm
Fri, 28 Feb 1997 16:38:55 +0100
changeset 2692 484ec6ca0c50
parent 2235 866dbb04816c
child 2960 a6b56d03ed0d
permissions -rw-r--r--
added Syntax/token_trans.ML;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1012
db0563a1644a Added Id: line
lcp
parents: 954
diff changeset
     1
#  $Id$
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
#									#
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
     4
#			Makefile for Isabelle (Pure)			#
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#The pure part is common to all systems.  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
#Object-logics (like FOL) are loaded on top of it.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
#To make the system, cd to this directory and type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
#	make -f Makefile 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#Environment variable ML_DBASE specifies the initial Poly/ML database, from
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#  the Poly/ML distribution directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#WARNING: Poly/ML parent databases should not be moved!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
COMP = $(ISABELLECOMP)
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2195
diff changeset
    24
FILES =	POLY.ML NJ.ML NJ093.ML NJ1xx.ML ROOT.ML basis.ML library.ML\
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2195
diff changeset
    25
	term.ML symtab.ML type.ML sign.ML\
1527
bfbadb70d794 Includes theory.ML in list of dependencies
paulson
parents: 1480
diff changeset
    26
	sequence.ML envir.ML pattern.ML unify.ML logic.ML theory.ML thm.ML\
1594
b776e3223dd6 Includes deriv.ML and display.ML as dependencies
paulson
parents: 1582
diff changeset
    27
	net.ML display.ML deriv.ML drule.ML tctical.ML search.ML tactic.ML\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    28
	goals.ML axclass.ML install_pp.ML\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    29
	NJ093.ML NJ1xx.ML ../Provers/simplifier.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    31
SYNTAX_FILES =	Syntax/ROOT.ML	Syntax/ast.ML		Syntax/lexicon.ML\
566
959cb0e329f7 replaced sextension.ML by syn_trans.ML;
wenzelm
parents: 415
diff changeset
    32
	Syntax/parser.ML	Syntax/type_ext.ML	Syntax/syn_trans.ML\
57
87e14d7f20dc added parser.ML, install_pp.ML
wenzelm
parents: 0
diff changeset
    33
	Syntax/pretty.ML	Syntax/printer.ML	Syntax/syntax.ML\
2692
484ec6ca0c50 added Syntax/token_trans.ML;
wenzelm
parents: 2235
diff changeset
    34
	Syntax/syn_ext.ML	Syntax/mixfix.ML	Syntax/symbol_font.ML\
484ec6ca0c50 added Syntax/token_trans.ML;
wenzelm
parents: 2235
diff changeset
    35
	Syntax/token_trans.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
415
e5470bf81350 added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents: 408
diff changeset
    37
THY_FILES = Thy/ROOT.ML		Thy/thy_scan.ML		Thy/thy_parse.ML\
1140
0a804a71274a Added dependence on Thy/thm_database.ML
nipkow
parents: 1012
diff changeset
    38
	Thy/thy_syn.ML		Thy/thy_read.ML		Thy/thm_database.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
#Uses cp rather than make_database because Poly/ML allows only 3 levels
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    41
$(BIN)/Pure:   $(FILES)	 $(SYNTAX_FILES)  $(THY_FILES)	$(ML_DBASE)
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2195
diff changeset
    42
	@case `basename "$(COMP)"` in \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
	poly*)	echo database=$${ML_DBASE:?'No Poly/ML database specified'};\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
		cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1333
diff changeset
    45
		echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    46
		  | $(COMP) $(BIN)/Pure;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1671
diff changeset
    47
		discgarb -c $(BIN)/Pure;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
	sml*)	if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    49
		then echo Bad value for ISABELLEBIN: \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    50
			$(BIN) is not a writable directory; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    51
			exit 1; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    52
		fi;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    53
		echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1;				     xML"$(BIN)/Pure" banner;' | $(COMP);;\
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2195
diff changeset
    54
	*)	echo Bad value for ISABELLECOMP: $(COMP); \
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2195
diff changeset
    55
		echo "   " \"`basename "$(COMP)"`\" is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
1671
608196238072 included (empty) test goal for symmetry reasons
oheimb
parents: 1594
diff changeset
    58
608196238072 included (empty) test goal for symmetry reasons
oheimb
parents: 1594
diff changeset
    59
test: $(BIN)/Pure
608196238072 included (empty) test goal for symmetry reasons
oheimb
parents: 1594
diff changeset
    60
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    61
.PRECIOUS:  $(BIN)/Pure