|
1 ######################################################################### |
|
2 # # |
|
3 # Makefile for Isabelle (FOLP) # |
|
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 ifolp.thy ifolp.ML folp.thy folp.ML int-prover.ML simpdata.ML\ |
|
22 classical.ML ../Provers/simp.ML ../Provers/ind.ML |
|
23 |
|
24 $(BIN)/FOLP: $(BIN)/Pure $(FILES) |
|
25 case "$(COMP)" in \ |
|
26 poly*) echo 'make_database"$(BIN)/FOLP"; quit();' \ |
|
27 | $(COMP) $(BIN)/Pure;\ |
|
28 echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOLP;;\ |
|
29 sml*) echo 'use"ROOT.ML"; xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;;\ |
|
30 *) echo Bad value for ISABELLECOMP;;\ |
|
31 esac |
|
32 |
|
33 $(BIN)/Pure: |
|
34 cd ../Pure; $(MAKE) |
|
35 |
|
36 test: ex/ROOT.ML $(BIN)/FOLP |
|
37 case "$(COMP)" in \ |
|
38 poly*) echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOLP ;;\ |
|
39 sml*) echo 'use"ex/ROOT.ML";' | $(BIN)/FOLP;;\ |
|
40 *) echo Bad value for ISABELLECOMP;;\ |
|
41 esac |
|
42 |
|
43 .PRECIOUS: $(BIN)/Pure $(BIN)/FOLP |