aboutsummaryrefslogtreecommitdiff
path: root/reproduce/analysis
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2020-02-20 18:01:06 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-02-20 18:05:39 +0000
commitc54642a9d2cb63181814a0bfa76b55897cbc4801 (patch)
treed4640bfbb5164562f43488ff32a31688ac05a835 /reproduce/analysis
parent6dcfac476fdb8334fc682304e12a5db6f21b3a22 (diff)
Preparation phase: prepare.tex not needed to finish preparation
Until now, the final preparation target of the preparation phase depended on all the `$(makesrc)' files. This caused a problem because we were telling it to also depend on `prepare.tex' (which is the same file that is being built). With this commit, we are applying the same solution we have already done in `paper.mk' (for `paper.tex'): we are removing `prepare' from the list of prerequisites. This bug was found by Zahra Sharbaf.
Diffstat (limited to 'reproduce/analysis')
-rw-r--r--reproduce/analysis/make/prepare.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/reproduce/analysis/make/prepare.mk b/reproduce/analysis/make/prepare.mk
index 1f0613c..36f25e7 100644
--- a/reproduce/analysis/make/prepare.mk
+++ b/reproduce/analysis/make/prepare.mk
@@ -19,7 +19,9 @@
# Final-target
#
# Without this file, `./project make' won't work.
-$(BDIR)/software/preparation-done.mk:
+prepare-dep = $(subst prepare, ,$(makesrc))
+$(BDIR)/software/preparation-done.mk: \
+ $(foreach s, $(prepare-dep), $(mtexdir)/$(s).tex)
# If you need to add preparations define targets above to do the
# preparations, then set the value below to `yes'. Recall that just