blob: 48a07945faaf24cb048c64034506b82ef9f77332 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# -*- make -*-
# FILE: "/home/evmik/jobs/wm/2013_fall_Experimental_Atomic_Physics_251/manual_source/Makefile"
# LAST MODIFICATION: "Fri, 30 Aug 2013 17:33:03 -0400 (evmik)"
# (C) 2001 by Eugeniy Mikhailov, <evmik@tamu.edu>
# $Id: Makefile,v 1.3 2003/04/23 20:40:19 evmik Exp $
MANUSCRIPT_DIR = $(shell basename `pwd`)
SUBDIR=`find ./ -maxdepth 1 -type d |sed 1d| sed /CVS/d`
INSTALL = install -C
CP_FILES = $(INSTALL) --mode=664
dest_dir = ../manual
LATEX_OPTIONS="-interaction=nonstopmode -src-specials"
DATE := $(shell date +%Y%m%d)
ROOT_OF_MAIN_TEX_FILE= EIT_filter
MAIN_TEX_FILE=$(ROOT_OF_MAIN_TEX_FILE).tex
source_files = $(wildcard *.tex)
source_basename = $(source_files:%.tex=%)
tex_targets = $(wildcard *.tex)
pdf_targets = $(tex_targets:%.tex=%.pdf)
ps_targets = $(tex_targets:%.tex=%.ps)
dvi_targets = $(tex_targets:%.tex=%.dvi)
default: pdf copy2dest
INCLUDED_TEX_FILES=$(wildcard chapters/*.tex)
GENERATED_AUX_FILES=$(INCLUDED_TEX_FILES:%.tex=%.aux)
$(INCLUDED_TEX_FILES):
dvi: $(dvi_targets)
$(dvi_targets): %.dvi : %.tex
rubber $<
ps: $(ps_targets)
$(ps_targets).ps: %.ps : %.dvi
dvips -o $@ $<
dvipdf: $(pdf_targets)
#home of dvipdfm utilit is at
#http://gaspra.kettering.edu/dvipdfm/
# if one want to use hyperred in pdf and dvipdfm converter
# then \usepackage[dvipdfm]{hyperref} should be use
# but then no links in dvi would be present
# so we use \usepackage{hyperref} but make pdf with dvipdf
# which do it through dvi -> ps -> pdf conversion
#$(pdf_targets): %.pdf : %.dvi
#dvipdfmx $<
# dvipdf $<
pdf: $(pdf_targets)
$(pdf_targets): %.pdf : %.tex $(INCLUDED_TEX_FILES)
rubber -d $<
zip:
zip -r arch.$(ROOT_OF_MAIN_TEX_FILE).`date +%F`.zip $(ROOT_OF_MAIN_TEX_FILE).tex Makefile bibliography.bib figures ol.bst osajnl.bst osajnl2.rtx osajnl2.sty `tex2figlist.sh $(ROOT_OF_MAIN_TEX_FILE).tex`
clean_results:
rm -f $(pdf_targets)
clean: clean_tex clean_bib clean_backups
rm -f $(ROOT_OF_MAIN_TEX_FILE).tar.gz
real_clean: clean_all
clean_backups:
rm -f *~
clean_tex:
rm -f $(tex_targets:%.tex=%.dvi)
rm -f $(tex_targets:%.tex=%.log)
rm -f $(tex_targets:%.tex=%.aux)
rm -f $(tex_targets:%.tex=%.nav)
rm -f $(tex_targets:%.tex=%.out)
rm -f $(tex_targets:%.tex=%.snm)
rm -f $(tex_targets:%.tex=%.toc)
rm -f $(tex_targets:%.tex=%.vrb)
rm -f $(tex_targets:%.tex=%.blg)
rm -f $(GENERATED_AUX_FILES)
rm -f missfont.log
rm -f *Notes.bib
clean_bib:
rm -f $(tex_targets:%.tex=%.bbl)
clean_for_arxive: clean_results clean_backups clean_tex
clean_all: clean clean_results clean_backups
$(dest_dir):
$(INSTALL) -d $(dest_dir)
copy2dest: $(dest_dir) pdf
$(CP_FILES) $(pdf_targets) $(dest_dir)/
arxive_submission: $(ROOT_OF_MAIN_TEX_FILE).for_arxive.$(DATE).tar.gz
$(ROOT_OF_MAIN_TEX_FILE).for_arxive.$(DATE).tar.gz: clean_for_arxive
cd ..; tar c --dereference --exclude=.git --exclude=*gz \
$(MANUSCRIPT_DIR)/$(tex_targets) \
$(MANUSCRIPT_DIR)/$(ROOT_OF_MAIN_TEX_FILE).bbl \
$(MANUSCRIPT_DIR)/ready_plots/* \
| gzip > $@
mv ../$@ .
arch:
cd ..; tar c --dereference --exclude=.git --exclude=*gz $(MANUSCRIPT_DIR) |gzip > $(ROOT_OF_MAIN_TEX_FILE).$(DATE).tar.gz
mv ../$(ROOT_OF_MAIN_TEX_FILE).$(DATE).tar.gz .
upload_draft_to_web:
|