blob: 27004881b30298e7c93f1dbba2a5ce1429cc895c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# -*- make -*-
make = make
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 = ../syllabus
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 --toc --toc-level=1 -t html -o $@ $<
$(pdf_targets): %.pdf : %.tex $(includes)
pdflatex $<
$(tex_targets): %.tex : %.t2t $(includes)
txt2tags -t tex -o $@ $<
clean_latex_tmp:
rm -f *.aux
rm -f *.log
rm -f *.out
rm -f *.tex
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
|