IsaMakefile
branchNominal2-Isabelle2012
changeset 3169 b6873d123f9b
parent 3132 87eca760dcba
equal deleted inserted replaced
3168:a6f3e1b08494 3169:b6873d123f9b
     1 
     1 
     2 ## targets
     2 ## targets
     3 
     3 
     4 default: session
     4 default: tests
     5 images: 
     5 images: 
     6 
     6 
     7 all: tests esop pearl pearl-jv qpaper qpaper-jv slides lmcs
     7 all: tests
     8 
     8 
     9 
     9 
    10 ## global settings
    10 ## global settings
    11 
    11 
    12 SRC = $(ISABELLE_HOME)/src
    12 SRC = $(ISABELLE_HOME)/src
    13 OUT = $(ISABELLE_OUTPUT)
    13 OUT = $(ISABELLE_OUTPUT)
    14 LOG = $(OUT)/log
    14 LOG = $(OUT)/log
    15 
    15 
    16 USEDIR = $(ISABELLE_TOOL) usedir -v true -t true -m no_brackets
    16 USEDIR = $(ISABELLE_TOOL) usedir -v true -t true -m no_brackets ##-D generated
    17 
       
    18 ## Nominal2                                                                                                             
       
    19 
       
    20 session: $(LOG)/HOL-Nominal2.gz
       
    21 
       
    22 $(LOG)/HOL-Nominal2.gz: Nominal/FROOT.ML Nominal/*.thy
       
    23 	@cd Nominal; $(USEDIR) -f FROOT.ML -b -d "" HOL Nominal2
       
    24 
    17 
    25 
    18 
    26 ## tests
    19 ## Nominal2
    27 
    20 
    28 tests: $(LOG)/HOL-Nominal2-tests.gz
    21 tests: $(LOG)/HOL-Nominal2.gz
    29 
    22 
    30 $(LOG)/HOL-Nominal2-tests.gz: Nominal/ROOT.ML Nominal/*.thy
    23 $(LOG)/HOL-Nominal2.gz: Nominal/ROOT.ML Nominal/*.thy
    31 	@$(USEDIR) HOL Nominal
    24 	@cd Nominal; $(USEDIR) -b -d "" HOL Nominal2
    32 	@$(USEDIR) HOL Tutorial
       
    33 
       
    34 ## ESOP Paper
       
    35 
       
    36 esop: $(LOG)/HOL-ESOP-Paper.gz
       
    37 
       
    38 $(LOG)/HOL-ESOP-Paper.gz: ESOP-Paper/ROOT.ML ESOP-Paper/document/root.* ESOP-Paper/*.thy
       
    39 	@$(USEDIR) -f ROOT.ML -D generated Nominal2 ESOP-Paper
       
    40 	$(ISABELLE_TOOL) document -o pdf  ESOP-Paper/generated
       
    41 	@cp ESOP-Paper/document.pdf esop-paper.pdf
       
    42 
       
    43 ## LMCS Paper
       
    44 
       
    45 lmcs: $(LOG)/HOL-LMCS-Paper.gz
       
    46 
       
    47 $(LOG)/HOL-LMCS-Paper.gz: LMCS-Paper/ROOT.ML LMCS-Paper/document/root.* LMCS-Paper/*.thy
       
    48 	@$(USEDIR) -f ROOT.ML -D generated Nominal2 LMCS-Paper
       
    49 	$(ISABELLE_TOOL) document -o pdf  LMCS-Paper/generated
       
    50 	@cp LMCS-Paper/document.pdf lmcs-paper.pdf
       
    51 
       
    52 ## Pearl Paper ITP
       
    53 
       
    54 pearl: $(LOG)/HOL-Pearl.gz
       
    55 
       
    56 $(LOG)/HOL-Pearl.gz: Pearl/ROOT.ML Pearl/document/root.* Pearl/*.thy
       
    57 	@$(USEDIR) -D generated HOL Pearl
       
    58 	$(ISABELLE_TOOL) document -o pdf Pearl/generated
       
    59 	@cp Pearl/document.pdf pearl.pdf
       
    60 
       
    61 ## Pearl Journal Paper 
       
    62 
       
    63 $(LOG)/HOL-Pearl-jv.gz: Pearl-jv/ROOT.ML Nominal/*.thy
       
    64 	@cd Pearl-jv; $(USEDIR) -b -f ROOT.ML HOL HOL-Pearl-jv
       
    65 
       
    66 pearl-jv: $(LOG)/HOL-Pearl-jv.gz Pearl-jv/ROOT2.ML Pearl-jv/document/root.* Pearl-jv/*.thy
       
    67 	@$(USEDIR) -f ROOT2.ML -D generated HOL-Pearl-jv Pearl-jv
       
    68 	@$(ISABELLE_TOOL) document -o pdf Pearl-jv/generated
       
    69 	@cp Pearl-jv/document.pdf pearl-jv.pdf	
       
    70 
       
    71 ## Quotient Paper 
       
    72 
       
    73 qpaper: $(LOG)/HOL-QPaper.gz
       
    74 
       
    75 $(LOG)/HOL-QPaper.gz: Quotient-Paper/ROOT.ML Quotient-Paper/document/root.* Quotient-Paper/*.thy
       
    76 	@$(USEDIR) -D generated HOL Quotient-Paper
       
    77 	$(ISABELLE_TOOL) document -o pdf Quotient-Paper/generated
       
    78 	@cp Quotient-Paper/document.pdf qpaper.pdf
       
    79 
       
    80 ## Quotient Journal Paper
       
    81 
       
    82 qpaper-jv: $(LOG)/HOL-QPaper-jv.gz
       
    83 
       
    84 $(LOG)/HOL-QPaper-jv.gz: Quotient-Paper-jv/ROOT.ML Quotient-Paper-jv/document/root.* Quotient-Paper-jv/*.thy
       
    85 	@$(USEDIR) -D generated HOL Quotient-Paper-jv
       
    86 	$(ISABELLE_TOOL) document -o pdf Quotient-Paper-jv/generated
       
    87 	@cp Quotient-Paper-jv/document.pdf qpaper-jv.pdf
       
    88 
       
    89 ## Nominal Functions paper
       
    90 
       
    91 fnpaper: $(LOG)/HOL-FnPaper.gz
       
    92 
       
    93 $(LOG)/HOL-FnPaper.gz: Fun-Paper/ROOT.ML Fun-Paper/document/root.* Fun-Paper/*.thy
       
    94 	@$(USEDIR) -D generated HOL Fun-Paper
       
    95 	$(ISABELLE_TOOL) document -o pdf Fun-Paper/generated
       
    96 	@cp Fun-Paper/document.pdf fnpaper.pdf
       
    97 
       
    98 ## Slides
       
    99 
       
   100 session1: Slides/ROOT1.ML \
       
   101          Slides/document/root* \
       
   102          Slides/Slides1.thy
       
   103 	@$(USEDIR) -D generated1 -f ROOT1.ML HOL-Nominal Slides
       
   104 
       
   105 slides1: session1
       
   106 	rm -f Slides/generated1/*.aux # otherwise latex will fall over
       
   107 	cd Slides/generated1 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   108 	cd Slides/generated1 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   109 	cp Slides/generated1/root.beamer.pdf Slides/slides1.pdf     
       
   110 
       
   111 session2: Slides/ROOT2.ML \
       
   112          Slides/document/root* \
       
   113          Slides/Slides2.thy
       
   114 	@$(USEDIR) -D generated2 -f ROOT2.ML HOL-Nominal Slides
       
   115 
       
   116 slides2: session2
       
   117 	rm -f Slides/generated2/*.aux # otherwise latex will fall over
       
   118 	cd Slides/generated2 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   119 	cd Slides/generated2 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   120 	cp Slides/generated2/root.beamer.pdf Slides/slides2.pdf 
       
   121 
       
   122 session3: Slides/ROOT3.ML \
       
   123          Slides/document/root* \
       
   124          Slides/Slides3.thy
       
   125 	@$(USEDIR) -D generated3 -f ROOT3.ML HOL-Nominal Slides
       
   126 
       
   127 slides3: session3
       
   128 	rm -f Slides/generated3/*.aux # otherwise latex will fall over
       
   129 	cd Slides/generated3 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   130 	cd Slides/generated3 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   131 	cp Slides/generated3/root.beamer.pdf Slides/slides3.pdf 
       
   132 
       
   133 session4: Slides/ROOT4.ML \
       
   134          Slides/document/root* \
       
   135          Slides/Slides4.thy
       
   136 	@$(USEDIR) -D generated4 -f ROOT4.ML HOL-Nominal Slides
       
   137 
       
   138 slides4: session4
       
   139 	rm -f Slides/generated4/*.aux # otherwise latex will fall over
       
   140 	cd Slides/generated4 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   141 	cd Slides/generated4 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   142 	cp Slides/generated4/root.beamer.pdf Slides/slides4.pdf 
       
   143 
       
   144 session5: Slides/ROOT5.ML \
       
   145          Slides/document/root* \
       
   146          Slides/Slides5.thy
       
   147 	@$(USEDIR) -D generated5 -f ROOT5.ML HOL-Nominal Slides
       
   148 
       
   149 slides5: session5
       
   150 	rm -f Slides/generated5/*.aux # otherwise latex will fall over
       
   151 	cd Slides/generated5 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   152 	cd Slides/generated5 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   153 	cp Slides/generated5/root.beamer.pdf Slides/slides5.pdf 
       
   154 
       
   155 session6: Slides/ROOT6.ML \
       
   156          Slides/document/root* \
       
   157          Slides/Slides6.thy
       
   158 	@$(USEDIR) -D generated6 -f ROOT6.ML HOL-Nominal Slides
       
   159 
       
   160 slides6: session6
       
   161 	rm -f Slides/generated6/*.aux # otherwise latex will fall over
       
   162 	cd Slides/generated6 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   163 	cd Slides/generated6 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   164 	cp Slides/generated6/root.beamer.pdf Slides/slides6.pdf 
       
   165 
       
   166 session7: Slides/ROOT7.ML \
       
   167          Slides/document/root* \
       
   168          Slides/Slides6.thy
       
   169 	@$(USEDIR) -D generated7 -f ROOT7.ML HOL Slides
       
   170 
       
   171 slides7: session7
       
   172 	rm -f Slides/generated7/*.aux # otherwise latex will fall over                                      
       
   173 	cd Slides/generated7 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   174 	cd Slides/generated7 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   175 	cp Slides/generated7/root.beamer.pdf Slides/slides7.pdf 
       
   176 
       
   177 session8: Slides/ROOT8.ML \
       
   178          Slides/document/root* \
       
   179          Slides/Slides6.thy
       
   180 	@$(USEDIR) -D generated8 -f ROOT8.ML HOL-Nominal Slides
       
   181 
       
   182 slides8: session8
       
   183 	rm -f Slides/generated8/*.aux # otherwise latex will fall over                                      
       
   184 	cd Slides/generated8 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   185 	cd Slides/generated8 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   186 	cp Slides/generated8/root.beamer.pdf Slides/slides8.pdf 
       
   187 
       
   188 session9: Slides/ROOT9.ML \
       
   189          Slides/document/root* \
       
   190          Slides/Slides6.thy
       
   191 	@$(USEDIR) -D generated9 -f ROOT9.ML HOL-Nominal Slides
       
   192 
       
   193 slides9: session9
       
   194 	rm -f Slides/generated9/*.aux # otherwise latex will fall over                                      
       
   195 	cd Slides/generated9 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   196 	cd Slides/generated9 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   197 	cp Slides/generated9/root.beamer.pdf Slides/slides9.pdf 
       
   198 
       
   199 sessionA: Slides/ROOTA.ML \
       
   200 	Slides/document/root* \
       
   201 	Slides/SlidesA.thy
       
   202 	@$(USEDIR) -D generatedA -f ROOTA.ML HOL-Nominal Slides
       
   203 
       
   204 slidesA: sessionA
       
   205 	rm -f Slides/generatedA/*.aux # otherwise latex will fall over
       
   206 	cd Slides/generatedA ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   207 	cd Slides/generatedA ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
   208 	cp Slides/generatedA/root.beamer.pdf Slides/slidesA.pdf 
       
   209 
       
   210 slides: slides1 slides2 slides3 slides4 slides5 slides6 slides7 slides8 slides8 slides9 slidesA
       
   211 
       
   212 
       
   213 
       
   214 
    25 
   215 ## clean
    26 ## clean
   216 
    27 
   217 clean:
    28 clean:
   218 	@rm -f $(LOG)/HOL-Nominal2.gz $(LOG)/HOL-Pearl.gz 
    29 	@rm -f $(LOG)/HOL-Nominal2.gz $(LOG)/HOL-Pearl.gz