diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | local.mk | 14 | ||||
-rw-r--r-- | notes/Makefile | 118 | ||||
-rw-r--r-- | notes/local.mk | 14 |
4 files changed, 44 insertions, 104 deletions
@@ -16,7 +16,7 @@ files4upload = $(html_targets) $(samples) $(syllabus_dir) $(misc) upscr = rsync --delete -ave ssh include $(TOPDIR)/common.mk -#include ./local.mk +include ./local.mk include $(MAKEINCLUDE_DIR)/t2t.mk include $(MAKEINCLUDE_DIR)/tex.mk include $(MAKEINCLUDE_DIR)/css.mk diff --git a/local.mk b/local.mk new file mode 100644 index 0000000..fa60706 --- /dev/null +++ b/local.mk @@ -0,0 +1,14 @@ +# -*- make -*- +# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com> + + +#PACKAGE_DIR = $(shell basename `pwd`) +PACKAGE_DIR = . + +tex_independent := +tex_fig_files := +t2t_fig_files := + +REQUIRED_TARGETS += html_t2t +INSTALL_TARGETS += install_html_t2t + diff --git a/notes/Makefile b/notes/Makefile index 5625df5..9b246cf 100644 --- a/notes/Makefile +++ b/notes/Makefile @@ -1,118 +1,30 @@ # -*- 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)" +# FILE: "/home/evmik/jobs/wm/2013_fall_Experimental_Atomic_Physics_251/syllabus_source/Makefile" +# LAST MODIFICATION: "Wed, 11 Sep 2013 13:54:57 -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 $(MAKEINCLUDE_DIR)/t2t.mk +include $(MAKEINCLUDE_DIR)/tex.mk -LATEX_OPTIONS="-interaction=nonstopmode -src-specials" -DATE := $(shell date +%Y%m%d) +dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR) -ROOT_OF_MAIN_TEX_FILE= EIT_filter -MAIN_TEX_FILE=$(ROOT_OF_MAIN_TEX_FILE).tex +.DEFAULT_GOAL := all -source_files = $(wildcard *.tex) -source_basename = $(source_files:%.tex=%) +all: compile install -tex_targets = $(wildcard *.tex) -pdf_targets = $(tex_targets:%.tex=%.pdf) -ps_targets = $(tex_targets:%.tex=%.ps) -dvi_targets = $(tex_targets:%.tex=%.dvi) +compile: $(REQUIRED_TARGETS) -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_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 ../$@ . - +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/notes/local.mk b/notes/local.mk new file mode 100644 index 0000000..8d6d951 --- /dev/null +++ b/notes/local.mk @@ -0,0 +1,14 @@ +# -*- make -*- +# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com> + + +PACKAGE_DIR = $(shell basename `pwd`) + +tex_independent := error_propagation_note.tex +t2t_fig_files := +tex_fig_files := +tex_includes := + +REQUIRED_TARGETS += pdf_tex +INSTALL_TARGETS += install_pdf_tex + |