summaryrefslogtreecommitdiff
path: root/syllabus_source
diff options
context:
space:
mode:
Diffstat (limited to 'syllabus_source')
-rw-r--r--syllabus_source/Makefile69
-rw-r--r--syllabus_source/local.mk13
2 files changed, 31 insertions, 51 deletions
diff --git a/syllabus_source/Makefile b/syllabus_source/Makefile
index cd34cd7..c737b4f 100644
--- a/syllabus_source/Makefile
+++ b/syllabus_source/Makefile
@@ -1,63 +1,30 @@
# -*- make -*-
+# 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 $
-make = make
+# 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
-#includes = weekly_topics.txt
-includes =
-t2t_files = $(wildcard *.t2t)
-html_targets = $(t2t_files:%.t2t=%.html)
-tex_targets = $(t2t_files:%.t2t=%.tex)
-pdf_targets = $(t2t_files:%.t2t=%.pdf)
+dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR)
-dest_dir = ../syllabus
+.DEFAULT_GOAL := all
-all: html pdf copy2dest
-
-html: $(html_targets)
-
-pdf: $(pdf_targets)
-
-tex: $(tex_targets)
-
-weekly_topics.txt: ../tentative_list_of_topics.t2t
- ../bin/tent_sched2weekly_topics.sh < ../tentative_list_of_topics.t2t > weekly_topics.txt
-
-$(dest_dir):
- $(INSTALL) -d $(dest_dir)
-
-copy2dest: $(dest_dir) html pdf
- $(CP_FILES) $(html_targets) $(pdf_targets) $(dest_dir)/
-
-
-$(html_targets): %.html : %.t2t $(includes)
- txt2tags --css-sugar -t html -o $@ $<
-
-$(pdf_targets): %.pdf : %.tex $(includes)
- pdflatex $<
-
-$(tex_targets): %.tex : %.t2t $(includes)
- txt2tags -t tex -o $@ $<
+all: compile install
+compile: $(REQUIRED_TARGETS)
+clean: $(CLEAN_TARGETS)
+
+real_clean: $(REAL_CLEAN_TARGETS)
-clean_latex_tmp:
- rm -f *.aux
- rm -f *.log
- rm -f *.out
- rm -f *.tex
+install: $(INSTALL_TARGETS)
-clean: clean_latex_tmp
- rm -f last_time_uploaded
-
-
-clean_all: clean
- rm -f $(pdf_targets)
- rm -f $(tex_targets)
- rm -f $(html_targets)
- rm -f $(includes)
-real_clean: clean_all
diff --git a/syllabus_source/local.mk b/syllabus_source/local.mk
new file mode 100644
index 0000000..c599855
--- /dev/null
+++ b/syllabus_source/local.mk
@@ -0,0 +1,13 @@
+# -*- make -*-
+# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com>
+
+
+PACKAGE_DIR = $(shell basename `pwd`)
+
+tex_independent :=
+tex_fig_files :=
+t2t_fig_files :=
+
+REQUIRED_TARGETS += html_t2t
+INSTALL_TARGETS += install_html_t2t
+