summaryrefslogtreecommitdiff
path: root/beamer_lecture.mk
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2015-08-31 11:37:16 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2015-08-31 11:37:16 -0400
commit5413de3fc6c3b52cdfa0606390c0f952332b2b78 (patch)
tree11d4b2c374c61417e52d4feeb73c9a8ffadb7288 /beamer_lecture.mk
parentc625247367fca33344d571d94c6c8491576eb612 (diff)
downloadmakefile_templates-5413de3fc6c3b52cdfa0606390c0f952332b2b78.tar.gz
makefile_templates-5413de3fc6c3b52cdfa0606390c0f952332b2b78.zip
improved beamer_lecture makefile
Diffstat (limited to 'beamer_lecture.mk')
-rw-r--r--beamer_lecture.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/beamer_lecture.mk b/beamer_lecture.mk
index 479f948..85b583e 100644
--- a/beamer_lecture.mk
+++ b/beamer_lecture.mk
@@ -20,16 +20,24 @@ beamer_lecture_includes = $(wildcard body/*.tex)
beamer_lecture_inputs += $(beamer_lecture_includes:%=\\\\input{%})
toc_t2t = toc.t2t
+toc_md_incl = toc.md_incl
-toc: $(toc_t2t)
+toc: $(toc_t2t) $(toc_md_incl)
+
$(toc_t2t): $(tex_includes)
../bin/lecture_toc_creator.sh > $@
+$(toc_md_incl): $(tex_includes)
+ ../bin/lecture_toc_md_creator.sh > $@
+
real_clean_toc:
ifneq ($(strip $(toc_t2t)),)
rm -f $(toc_t2t)
endif
+ifneq ($(strip $(toc_md_incl)),)
+ rm -f $(toc_md_incl)
+endif
real_clean_beamer_lecture_headers:
rm -f $(beamer_lecture_tex)