From fe46d5ee916dd7cf78c332113bff9a506acc7652 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Mon, 31 Aug 2015 11:44:50 -0400 Subject: clarified toc targets --- beamer_lecture.mk | 14 ++++++++------ 1 file 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) -- cgit v1.2.3