src/FOL/Makefile
author paulson
Fri, 03 Jan 1997 15:01:55 +0100
changeset 2469 b50b8c0eec01
parent 2235 866dbb04816c
child 2889 a86f3b5f3cc7
permissions -rw-r--r--
Implicit simpsets and clasets for FOL and ZF
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
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 (FOL)			#
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
#To make the system, cd to this directory and type  
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
     9
#	make
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type  
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    11
#	make test
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    13
#MAKE_HTML or add the parameter "MAKE_HTML=".
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
#if it is out of date, since this Makefile does not know its dependencies!
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)
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    24
FILES =	 ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2235
diff changeset
    25
	 thy_data.ML cladata.ML \
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    26
	 ../Provers/hypsubst.ML ../Provers/classical.ML \
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 940
diff changeset
    27
	 ../Provers/simplifier.ML ../Provers/splitter.ML ../Provers/ind.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
1550
f945e3a96b35 EX_FILES includes new oracle examples, and uses the
paulson
parents: 1491
diff changeset
    29
EX_NAMES = If List Nat Nat2 Prolog declIffOracle IffOracle
f945e3a96b35 EX_FILES includes new oracle examples, and uses the
paulson
parents: 1491
diff changeset
    30
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML  ex/int.ML ex/intro.ML\
f945e3a96b35 EX_FILES includes new oracle examples, and uses the
paulson
parents: 1491
diff changeset
    31
	   ex/prop.ML ex/quant.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML)
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    32
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    34
	@if [ -d $${ISABELLEBIN:?}/Pure ];\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    35
		then echo Bad value for ISABELLEBIN: \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    36
			$(BIN) is the Isabelle source directory; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    37
			exit 1; \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    38
	fi
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    39
	@case `basename "$(COMP)"` in \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    40
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1003
diff changeset
    41
		  | $(COMP) $(BIN)/Pure;\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    42
		if [ "$${MAKE_HTML}" = "true" ]; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    43
		then echo 'open PolyML; make_html := true; exit_use_dir".";' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    44
		       | $(COMP) $(BIN)/FOL;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    45
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    46
		then echo 'open PolyML; make_html := true; exit_use_dir".";				  make_html := false;' | $(COMP) $(BIN)/FOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    47
		else echo 'open PolyML; exit_use_dir".";' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    48
		       | $(COMP) $(BIN)/FOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    49
		fi;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 1550
diff changeset
    50
		discgarb -c $(BIN)/FOL;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    51
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    52
		then echo 'make_html := true; exit_use_dir".";						  xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    53
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    54
		then echo 'make_html := true; exit_use_dir".";						  make_html := false; xML"$(BIN)/FOL" banner;' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    55
		       | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    56
		else echo 'exit_use_dir"."; xML"$(BIN)/FOL" banner;' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    57
		       | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    58
		fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    59
	*)	echo Bad value for ISABELLECOMP: \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    60
			\"$(COMP)\" is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    66
test:	ex/ROOT.ML  $(BIN)/FOL	$(EX_FILES) 
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    67
	@case `basename "$(COMP)"` in \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    68
	poly*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    69
		then echo 'make_html := true; exit_use_dir"ex"; quit();' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    70
		       | $(COMP) $(BIN)/FOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    71
		else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    72
		fi;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1356
diff changeset
    73
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    74
		then echo 'make_html := true; exit_use_dir"ex";' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    75
		       | $(BIN)/FOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    76
		else echo 'exit_use_dir"ex";' | $(BIN)/FOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2023
diff changeset
    77
		fi;;\
409
54fcef4db0db added test for $ISABELLEBIN=source directory, to
lcp
parents: 336
diff changeset
    78
	*)	echo Bad value for ISABELLECOMP: \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    79
			\"$(COMP)\" is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    81
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    82
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL