diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-09-11 13:15:12 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-09-11 13:15:12 -0400 |
commit | 5db6edee358efcbfcf7b70f8624dff5bc258360c (patch) | |
tree | bbe820c77bf8f530e11aeb37c2af23a4a9ae7829 | |
parent | 94e7ba08cb33a3d75a6a694c375ef691cf571ca1 (diff) | |
download | manual_for_Experimental_Atomic_Physics-5db6edee358efcbfcf7b70f8624dff5bc258360c.tar.gz manual_for_Experimental_Atomic_Physics-5db6edee358efcbfcf7b70f8624dff5bc258360c.zip |
Makefile for manual is redone
-rw-r--r-- | manual_source/Makefile | 129 | ||||
-rw-r--r-- | manual_source/local.mk | 14 |
2 files changed, 29 insertions, 114 deletions
diff --git a/manual_source/Makefile b/manual_source/Makefile index 48a0794..c737b4f 100644 --- a/manual_source/Makefile +++ b/manual_source/Makefile @@ -1,129 +1,30 @@ # -*- 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)" +# FILE: "/home/evmik/jobs/wm/2013_fall_Experimental_Atomic_Physics_251/syllabus_source/Makefile" +# LAST MODIFICATION: "Wed, 11 Sep 2013 12:43:04 -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` +# Default value so one can compile i3-msg standalone +TOPDIR=.. +include $(TOPDIR)/common.mk +include ./local.mk +include ../make_templates/t2t.mk +include ../make_templates/tex.mk -INSTALL = install -C -CP_FILES = $(INSTALL) --mode=664 -dest_dir = ../manual +dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR) -LATEX_OPTIONS="-interaction=nonstopmode -src-specials" +.DEFAULT_GOAL := all -DATE := $(shell date +%Y%m%d) +all: compile install -ROOT_OF_MAIN_TEX_FILE= EIT_filter -MAIN_TEX_FILE=$(ROOT_OF_MAIN_TEX_FILE).tex +compile: $(REQUIRED_TARGETS) -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_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 ../$@ . - +real_clean: $(REAL_CLEAN_TARGETS) -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 . +install: $(INSTALL_TARGETS) -upload_draft_to_web: diff --git a/manual_source/local.mk b/manual_source/local.mk new file mode 100644 index 0000000..36fe715 --- /dev/null +++ b/manual_source/local.mk @@ -0,0 +1,14 @@ +# -*- make -*- +# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com> + + +PACKAGE_DIR = $(shell basename `pwd`) + +tex_independent := manual.tex +t2t_fig_files := +tex_fig_files := $(wildcard pdf_figs/*.pdf) +tex_includes := $(wildcard chapters/*.tex) + +REQUIRED_TARGETS += pdf_tex +INSTALL_TARGETS += install_pdf_tex + |