diff options
Diffstat (limited to 'beamer_lecture.mk')
-rw-r--r-- | beamer_lecture.mk | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/beamer_lecture.mk b/beamer_lecture.mk index 85b583e..f5b690f 100644 --- a/beamer_lecture.mk +++ b/beamer_lecture.mk @@ -19,21 +19,23 @@ tex_independent = $(beamer_lecture_tex) beamer_lecture_includes = $(wildcard body/*.tex) beamer_lecture_inputs += $(beamer_lecture_includes:%=\\\\input{%}) -toc_t2t = toc.t2t -toc_md_incl = toc.md_incl +toc_t2t_incl ?= toc.t2t +toc_md_incl ?= toc.md_incl -toc: $(toc_t2t) $(toc_md_incl) +toc: $(toc_t2t_incl) $(toc_md_incl) -$(toc_t2t): $(tex_includes) +toc_t2t: $(toc_t2t_incl) +$(toc_t2t_incl): $(tex_includes) ../bin/lecture_toc_creator.sh > $@ +toc_md: $(toc_md_incl) $(toc_md_incl): $(tex_includes) ../bin/lecture_toc_md_creator.sh > $@ real_clean_toc: -ifneq ($(strip $(toc_t2t)),) - rm -f $(toc_t2t) +ifneq ($(strip $(toc_t2t_incl)),) + rm -f $(toc_t2t_incl) endif ifneq ($(strip $(toc_md_incl)),) rm -f $(toc_md_incl) |