diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2015-08-31 11:44:50 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2015-08-31 11:44:50 -0400 |
commit | fe46d5ee916dd7cf78c332113bff9a506acc7652 (patch) | |
tree | 7c0864b6f3b00455212e7ba533b16db1941c5e73 | |
parent | 5413de3fc6c3b52cdfa0606390c0f952332b2b78 (diff) | |
download | makefile_templates-fe46d5ee916dd7cf78c332113bff9a506acc7652.tar.gz makefile_templates-fe46d5ee916dd7cf78c332113bff9a506acc7652.zip |
clarified toc targets
-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) |