summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2020-08-08 16:22:12 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2020-08-08 16:22:12 -0400
commit94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae (patch)
treec78fd5b5de4e16386eb3adcbf632fa71f83391b4
parentd7c168d8f9f65de296323b92bafa117fd8f8878b (diff)
downloadmakefile_templates-94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae.tar.gz
makefile_templates-94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae.zip
fixed repetitive targets case
-rw-r--r--tex.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/tex.mk b/tex.mk
index 3a006b1..d8379ec 100644
--- a/tex.mk
+++ b/tex.mk
@@ -16,13 +16,14 @@ pdf_tex: $(pdf_from_independent_tex)
pdf_tex_dest_targets = $(pdf_from_independent_tex:%=$(dest_dir_tex)/%)
-tex_dest_targets = $(tex_independent:%=$(dest_dir_tex)/%)
+tex_dest_targets_raw = $(tex_independent:%=$(dest_dir_tex)/%)
ifneq ($(strip $(tex_includes)),)
-tex_dest_targets += $(tex_includes:%=$(dest_dir_tex)/%)
+tex_dest_targets_raw += $(tex_includes:%=$(dest_dir_tex)/%)
endif
ifneq ($(strip $(tex_fig_files)),)
-tex_dest_targets += $(tex_fig_files:%=$(dest_dir_tex)/%)
+tex_dest_targets_raw += $(tex_fig_files:%=$(dest_dir_tex)/%)
endif
+tex_dest_targets = $(sort $(tex_dest_targets_raw))
# rubber does not deal with nicely with subfiles
# thus force switch below