ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/scienceIcei/Makefile
Revision: 1845
Committed: Fri Dec 3 22:39:30 2004 UTC (19 years, 7 months ago) by chrisfen
File size: 1134 byte(s)
Log Message:
the short version

File Contents

# User Rev Content
1 chrisfen 1845 LBIN =/usr/local/bin
2     LC = $(LBIN)/latex
3     BC = $(LBIN)/bibtex
4     D2PS = $(LBIN)/dvips
5     D2PDF = $(LBIN)/dvipdf
6     XDVI = $(LBIN)/xdvi
7    
8     .SUFFIXES: $(SUFFIXES) .dvi .ps .bib .tex .bbl .pdf
9    
10     PAPER_ROOT = iceiPaper
11     PICTURES =
12    
13    
14    
15    
16     AIX_PSVIEWER = ghostview
17     Linux_PSVIEWER = ghostview
18     SunOS_PSVIEWER = ghostview
19    
20     INFILES = iceiPaper.tex
21    
22     #
23     # A very cool hack to "do the right thing":
24     PSVIEWER = ${$(OS)_PSVIEWER}
25     #
26     #
27     # standard rules:
28     #
29     .dvi.ps:
30     touch $*.ps
31     /bin/rm $*.ps
32     @echo "compiling $*"
33     $(D2PS) -o $*.ps $<
34    
35     .dvi.pdf:
36     touch $*.pdf
37     /bin/rm $*.pdf
38     @echo "compiling $*"
39     $(D2PDF) $< $*.pdf
40    
41     all:: ${PAPER_ROOT}.view
42    
43     outline:: ${OUTLINE}.view
44    
45     gs:: ${PAPER_ROOT}.psview
46    
47     print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf
48     print_outline: ${OUTLINE}.ps
49     lpr ${OUTLINE}.ps
50    
51     ${PAPER_ROOT}.dvi: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES}
52     $(LC) ${PAPER_ROOT}
53     $(BC) ${PAPER_ROOT}
54     $(LC) ${PAPER_ROOT}
55     $(LC) ${PAPER_ROOT}
56    
57     ${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps
58     ${PSVIEWER} ${PAPER_ROOT}.ps
59    
60     ${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi
61     $(XDVI) -fg black ${PAPER_ROOT}
62    
63     clean::
64     /bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof
65    
66