Rev 1676 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1676 | tullio | 1 | # common part of the Shark manual makefiles |
2 | |||
3 | # /toOl: build only if $(MAIN).pdf is not already present |
||
4 | all: eps $(MAIN).pdf |
||
5 | |||
6 | # /toOl: commented stuff is for MikTex |
||
7 | $(MAIN).pdf: *.tex |
||
8 | latex $(MAIN).tex |
||
9 | # makeindex $(MAIN) |
||
10 | bibtex $(MAIN) |
||
11 | latex $(MAIN).tex |
||
12 | latex $(MAIN).tex |
||
13 | # dvips -R0 -t a4 -I c $(MAIN) -o $(MAIN).ps |
||
14 | dvips $(MAIN) |
||
15 | ps2pdf $(MAIN).ps |
||
16 | if test $(MAIN_NAME); then cp $(MAIN).pdf ../$(MAIN_NAME).pdf; fi |
||
17 | |||
18 | clean: |
||
19 | rm -rf *.aux |
||
20 | rm -rf *.dvi |
||
21 | rm -rf *.log |
||
22 | rm -rf *.idx |
||
23 | rm -rf *.ind |
||
24 | rm -rf *.toc |
||
25 | rm -rf *.ilg |
||
26 | rm -rf *.out |
||
27 | rm -rf *.bbl |
||
28 | rm -rf *.blg |
||
29 | rm -rf *~ |
||
30 | rm -rf $(MAIN).ps $(MAIN).pdf |
||
31 | rm -f $(EPS_DIA_FILES) $(EPS_FIG_FILES) |
||
32 | |||
33 | cleanall: clean |
||
34 | |||
35 | # automatic generation of eps files from sources |
||
36 | |||
37 | DIA_FILES = $(shell find . -iname *.dia) |
||
38 | EPS_DIA_FILES = $(patsubst %.dia,%.eps, $(DIA_FILES)) |
||
39 | |||
40 | FIG_FILES = $(shell find . -iname *.fig) |
||
41 | EPS_FIG_FILES = $(patsubst %.fig,%.eps, $(FIG_FILES)) |
||
42 | |||
43 | .PHONY: eps |
||
44 | |||
45 | eps: $(EPS_DIA_FILES) $(EPS_FIG_FILES) |
||
46 | |||
47 | %.eps : %.dia |
||
48 | dia $< -t eps-builtin -e $@ |
||
49 | |||
50 | %.eps : %.fig |
||
51 | fig2dev -L eps $< $@ |
||
52 |