summaryrefslogtreecommitdiff
path: root/syllabus_source/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'syllabus_source/Makefile')
-rw-r--r--syllabus_source/Makefile69
1 files changed, 18 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