summaryrefslogtreecommitdiff
path: root/tex.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tex.mk')
-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