src/Sequents/Makefile
author wenzelm
Fri, 07 Mar 1997 11:48:46 +0100
changeset 2754 59bd96046ad6
parent 2235 866dbb04816c
child 2830 f56e0cac7de9
permissions -rw-r--r--
moved settings comment to build;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     1
# $Id$
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     2
#########################################################################
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     3
#									#
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
     4
#			Makefile for Isabelle (Sequents)		#
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     5
#									#
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     6
#########################################################################
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     7
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     8
#To make the system, cd to this directory and type
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
     9
#	make
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    10
#To make the system and test it on standard examples, type 
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    11
#	make test
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    13
#MAKE_HTML or add the parameter "MAKE_HTML=".
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    14
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    15
#Environment variable ISABELLECOMP specifies the compiler.
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    16
#Environment variable ISABELLEBIN specifies the destination directory.
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    17
#For Poly/ML, ISABELLEBIN must begin with a /
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    18
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    19
#Makes Pure if this file is ABSENT -- but not 
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    20
#if it is out of date, since this Makefile does not know its dependencies!
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    21
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    22
BIN = $(ISABELLEBIN)
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    23
COMP = $(ISABELLECOMP)
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    24
NAMES = ILL LK S4 S43 T
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    25
FILES = ROOT.ML Sequents.thy prover.ML $(NAMES:%=%.thy) $(NAMES:%=%.ML)
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    26
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    27
ILL_NAMES = ILL_predlog washing 
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    28
EX_FILES = ex/ROOT.ML \
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    29
    ex/LK/ROOT.ML ex/LK/hardquant.ML ex/LK/prop.ML ex/LK/quant.ML \
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    30
    ex/Modal/ROOT.ML ex/Modal/S43thms.ML ex/Modal/S4thms.ML ex/Modal/Tthms.ML \
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    31
    ex/ILL/ILL_kleene_lemmas.ML \
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    32
    $(ILL_NAMES:%=ex/ILL/%.thy) $(ILL_NAMES:%=ex/ILL/%.ML)
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    33
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    34
$(BIN)/Sequents:   $(BIN)/Pure	$(FILES) 
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    35
	@case `basename "$(COMP)"` in \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    36
	poly*)	echo 'make_database"$(BIN)/Sequents"; quit();'	\
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    37
			| $(COMP) $(BIN)/Pure;\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    38
		if [ "$${MAKE_HTML}" = "true" ]; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    39
		then echo 'open PolyML; make_html := true; exit_use_dir".";' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    40
		       | $(COMP) $(BIN)/Sequents;\
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    41
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    42
		then echo 'open PolyML; make_html := true; exit_use_dir".";				  make_html := false;' | $(COMP) $(BIN)/Sequents;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    43
		else echo 'open PolyML; exit_use_dir".";' | $(COMP) $(BIN)/Sequents;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    44
		fi;\
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    45
		discgarb -c $(BIN)/Sequents;;\
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    46
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    47
		then echo 'make_html := true; exit_use_dir".";						  xML"$(BIN)/Sequents" banner;' | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    48
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    49
		then echo 'make_html := true; exit_use_dir".";						  make_html := false; xML"$(BIN)/Sequents" banner;' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    50
		       | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    51
		else echo 'exit_use_dir"."; xML"$(BIN)/Sequents" banner;' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    52
		       | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    53
		fi;;\
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    54
	*)	echo Bad value for ISABELLECOMP: \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    55
			\"$(COMP)\" is not poly or sml;;\
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    56
	esac
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    57
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    58
$(BIN)/Pure:
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    59
	cd ../Pure;  $(MAKE)
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    60
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2073
diff changeset
    61
test:	$(BIN)/Sequents	 $(EX_FILES)
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    62
	@case `basename "$(COMP)"` in \
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    63
	poly*)	echo 'exit_use"ex/ROOT.ML";quit();' | $(COMP) $(BIN)/Sequents;;\
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    64
	sml*)	echo 'exit_use"ex/ROOT.ML";' | $(BIN)/Sequents;;\
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    65
	*)	echo Bad value for ISABELLECOMP: \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    66
			\"$(COMP)\" is not poly or sml;;\
2073
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    67
	esac
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    68
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    69
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    70
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    71
fb0655539d05 New unified treatment of sequent calculi by Sara Kalvala
paulson
parents:
diff changeset
    72
.PRECIOUS:  $(BIN)/Pure $(BIN)/Sequents