summaryrefslogtreecommitdiff
path: root/matlab_usage_source
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2013-09-11 12:03:42 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2013-09-11 12:03:42 -0400
commitad099f123e1542484130b0a5013aafd343705184 (patch)
treea2a3d6ceb8339640d4d0e312be937aa51f6830dd /matlab_usage_source
parent39dd3f76635380754e28ce3e87941d4120b2d399 (diff)
downloadmanual_for_Experimental_Atomic_Physics-ad099f123e1542484130b0a5013aafd343705184.tar.gz
manual_for_Experimental_Atomic_Physics-ad099f123e1542484130b0a5013aafd343705184.zip
make is separated to submodules
Diffstat (limited to 'matlab_usage_source')
-rw-r--r--matlab_usage_source/Makefile68
-rw-r--r--matlab_usage_source/local.mk6
2 files changed, 10 insertions, 64 deletions
diff --git a/matlab_usage_source/Makefile b/matlab_usage_source/Makefile
index ce472e5..9a9535d 100644
--- a/matlab_usage_source/Makefile
+++ b/matlab_usage_source/Makefile
@@ -1,6 +1,6 @@
# -*- make -*-
# FILE: "/home/evmik/jobs/wm/2013_fall_Experimental_Atomic_Physics_251/matlab_usage_source/Makefile"
-# LAST MODIFICATION: "Wed, 11 Sep 2013 11:09:18 -0400 (evmik)"
+# LAST MODIFICATION: "Wed, 11 Sep 2013 12:01:48 -0400 (evmik)"
# (C) 2001 by Eugeniy Mikhailov, <evmik@tamu.edu>
# $Id: Makefile,v 1.3 2003/04/23 20:40:19 evmik Exp $
@@ -8,76 +8,20 @@
TOPDIR=..
include $(TOPDIR)/common.mk
include ./local.mk
+include ../make_templates/t2t.mk
+include ../make_templates/tex.mk
-t2t_files = $(wildcard *.t2t)
-tex_from_t2t = $(t2t_files:%.t2t=%.tex)
-pdf_from_t2t = $(tex_from_t2t:%.tex=%.pdf)
-html_from_t2t = $(t2t_files:%.t2t=%.html)
-
-pdf_from_independent_tex= $(tex_independent:%.tex=%.pdf)
dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR)
-misc_files = $(t2t_fig_files) $(tex_independent)
-
all: $(REQUIRED_TARGETS) $(INSTALLED_TARGETS)
make clean
-html_t2t: $(html_from_t2t)
-
-pdf_tex: $(pdf_from_independent_tex)
-
-pdf_t2t: $(pdf_from_t2t)
-
-tex: $(tex_from_t2t)
-
-
-
-$(html_from_t2t): %.html : %.t2t $(t2t_fig_files)
- txt2tags --css-sugar -t html -o $@ $<
-
-
-$(pdf_from_t2t): %.pdf : %.tex $(t2t_fig_files)
- rubber -d $<
-
-$(pdf_from_independent_tex): %.pdf : %.tex $(tex_fig_files)
- rubber -d $<
-
-$(dest_dir):
- $(INSTALL) -d -m 0755 $(dest_dir)
-
-install_html_t2t: $(dest_dir) $(html_from_t2t)
- $(INSTALL) -m 0644 $(html_from_t2t) $(dest_dir)/
- $(INSTALL) -m 0644 $(t2t_fig_files) $(dest_dir)/
-
-install_pdf_tex: $(dest_dir) $(pdf_from_independent_tex)
- $(INSTALL) -m 0644 $(pdf_from_independent_tex) $(dest_dir)/
- $(INSTALL) -m 0644 $(tex_fig_files) $(dest_dir)/
-
-clean: clean_tex
- rm -f last_time_uploaded
-
-real_clean: clean_all
+clean: $(CLEAN_TARGETS)
-clean_all: clean
- rm -f $(pdf_from_t2t)
- rm -f $(pdf_from_independent_tex)
- rm -f $(html_from_t2t)
+real_clean: $(REAL_CLEAN_TARGETS)
-clean_tex:
- rm -f $(tex_from_t2t:%.tex=%.dvi)
- rm -f $(tex_from_t2t:%.tex=%.log)
- rm -f $(tex_from_t2t:%.tex=%.aux)
- rm -f $(tex_from_t2t:%.tex=%.nav)
- rm -f $(tex_from_t2t:%.tex=%.out)
- rm -f $(tex_from_t2t:%.tex=%.snm)
- rm -f $(tex_from_t2t:%.tex=%.toc)
- rm -f $(tex_from_t2t:%.tex=%.vrb)
- rm -f $(tex_from_t2t:%.tex=%.blg)
- rm -f missfont.log
- rm -f *Notes.bib
+install: $(INSTALL_TARGETS)
-clean_bib:
- rm -f $(tex_from_t2t:%.tex=%.bbl)
diff --git a/matlab_usage_source/local.mk b/matlab_usage_source/local.mk
index 2091734..14c044f 100644
--- a/matlab_usage_source/local.mk
+++ b/matlab_usage_source/local.mk
@@ -8,6 +8,8 @@ tex_independent :=
t2t_fig_files := errorbar_plot.png errorbar_with_large_font_plot.png fitted_data_improved.png fitted_data.png simple_labeled_and_proper_limits_plot.png simple_labeled_plot.png simple_unlabeled_plot.png
#REQUIRED_TARGETS = html_t2t pdf_tex
-REQUIRED_TARGETS = html_t2t
+REQUIRED_TARGETS := html_t2t
#INSTALLED_TARGETS = install_html_t2t install_pdf_tex
-INSTALLED_TARGETS = install_html_t2t
+INSTALL_TARGETS := install_html_t2t
+CLEAN_TARGETS := clean_t2t clean_tex
+REAL_CLEAN_TARGETS := real_clean_t2t real_clean_tex