comparison final_pre/modus-ponens/Makefile @ 7:28f900230c26

add final_pre
author ryokka
date Mon, 19 Feb 2018 23:32:24 +0900
parents
children
comparison
equal deleted inserted replaced
6:d927f6b3d2b3 7:28f900230c26
1 # Settings
2 TARGET=modus-ponens
3 BIBTEX=echo # pbibtex
4 BB=extractbb
5
6 vpath pdf fig
7 FIGURES=$(wildcard fig/*.pdf)
8 FIGURES_FOR_TEX=$(subst .pdf,.xbb,$(FIGURES))
9
10 # dependencies
11 $(TARGET).pdf : $(TARGET).dvi
12 dvipdfmx $<
13
14 $(TARGET).dvi : $(wildcard *.tex) $(FIGURES_FOR_TEX) $(SOURCES_FOR_TEX)
15 platex $(TARGET).tex
16 $(BIBTEX) $(TARGET)
17 platex $(TARGET).tex
18 platex $(TARGET).tex
19
20 %.xbb: %.pdf
21 $(BB) $<
22
23
24 # commands
25 .PHONY : clean all open remake
26
27 clean:
28 rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core *.cpt *.lof *.lot *.lol *.bbl *.blg
29
30 all: $(TARGET).pdf
31
32 open: $(TARGET).pdf
33 open $(TARGET).pdf
34
35 remake:
36 make clean
37 make all