diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-08-28 13:24:52 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-08-28 13:24:52 -0400 |
commit | b8c8e31dd79b5b6dcc0d36b19714415c0c54c703 (patch) | |
tree | 7ae15fac2e1554c631cb981f2863808bd74a8cd9 /notes/Makefile | |
parent | 22f481cc9c0f96dc5ba2761e61a8e24698ec2798 (diff) | |
download | manual_for_Experimental_Atomic_Physics-b8c8e31dd79b5b6dcc0d36b19714415c0c54c703.tar.gz manual_for_Experimental_Atomic_Physics-b8c8e31dd79b5b6dcc0d36b19714415c0c54c703.zip |
added error propagation notes
Diffstat (limited to 'notes/Makefile')
-rw-r--r-- | notes/Makefile | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/notes/Makefile b/notes/Makefile new file mode 100644 index 0000000..5625df5 --- /dev/null +++ b/notes/Makefile @@ -0,0 +1,118 @@ +# -*- make -*- +# FILE: "/home/evmik/jobs/wm/2013_fall_Experimental_Atomic_Physics_251/manual/Makefile" +# LAST MODIFICATION: "Tue, 27 Aug 2013 10:36:02 -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` + +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 + +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 + +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: + |