# -*- 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, # $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: