summaryrefslogtreecommitdiff
path: root/OSCAD/report/presentation/Makefile
blob: f6b42451b15f50a6d2179d6fff1796ce7fb0653b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
LATEX=latex
BIBTEX=bibtex
PDFLATEX=pdflatex
RM=rm
CP=cp
MAKEINDEX=makeindex
DVITOPS=dvips
DVIPDF=dvipdf
PSTOPDF=ps2pdf

DEPENDENCIES= *.tex Makefile
MAINFILE=OSCAD

all: $(MAINFILE).pdf

$(MAINFILE).dvi: $(DEPENDENCIES) 
	$(LATEX) $(MAINFILE)
#	$(BIBTEX) $(MAINFILE)
#	$(LATEX) $(MAINFILE)
#	$(LATEX) $(MAINFILE)
#	$(CP) $(MAINFILE).idx $(MAINFILE).ind
#	$(MAKEINDEX) $(MAINFILE).idx
#	$(LATEX) $(MAINFILE).tex

#-Ppdf option 
#Type fonts are scalable and looks good on pdf file
#default is bitmaps which are suitable for printer only not scalable

#$(MAINFILE).ps: $(MAINFILE).dvi
#	$(DVITOPS) -Ppdf -G0 $(MAINFILE).dvi -o $(MAINFILE).ps
#$(MAINFILE).pdf: $(MAINFILE).ps
#	$(PSTOPDF) -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.4 -dSubsetFonts=true -dEmbedAllFonts=true $(MAINFILE).ps
$(MAINFILE).pdf: $(MAINFILE).dvi
	$(DVIPDF) $(MAINFILE).dvi

clean:
	$(RM) -f $(MAINFILE).pdf $(MAINFILE).ps $(MAINFILE).dvi
cleanall:
	$(RM) -f $(MAINFILE).pdf $(MAINFILE).ps $(MAINFILE).dvi *.aux *.log *.ind *.ilg *.idx *.toc