diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2020-08-08 16:22:12 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2020-08-08 16:22:12 -0400 |
commit | 94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae (patch) | |
tree | c78fd5b5de4e16386eb3adcbf632fa71f83391b4 | |
parent | d7c168d8f9f65de296323b92bafa117fd8f8878b (diff) | |
download | makefile_templates-94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae.tar.gz makefile_templates-94a78e0db2e82ae3b733e0e46d49cfe9aeddfeae.zip |
fixed repetitive targets case
-rw-r--r-- | tex.mk | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |