# -*- 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