From 94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sat, 8 Aug 2020 16:22:12 -0400 Subject: fixed repetitive targets case --- tex.mk | 7 ++++--- 1 file 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 -- cgit v1.2.3