aboutsummaryrefslogtreecommitdiff
path: root/reproduce/analysis/make/initialize.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-10-01 18:13:05 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-10-01 18:13:05 +0100
commit4230cefd85348f297224596fd9db927793fcb39b (patch)
tree6f5051b4bac0b9f5f53d7bfecc199aeac49c1fa5 /reproduce/analysis/make/initialize.mk
parent7caa2845304c40540a336f840b3ca468bf6c8697 (diff)
Infrastructure to keep preparation results
A special directory is now defined in `initialize.mk' that can be used in both the preparation and build phases. Also, the contents of prepared results can now be conditionally read during `./project make'.
Diffstat (limited to 'reproduce/analysis/make/initialize.mk')
-rw-r--r--reproduce/analysis/make/initialize.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/reproduce/analysis/make/initialize.mk b/reproduce/analysis/make/initialize.mk
index 918ae06..0e359c5 100644
--- a/reproduce/analysis/make/initialize.mk
+++ b/reproduce/analysis/make/initialize.mk
@@ -33,6 +33,7 @@
texdir = $(BDIR)/tex
lockdir = $(BDIR)/locks
indir = $(BDIR)/inputs
+prepdir = $(BDIR)/prepare
mtexdir = $(texdir)/macros
bashdir = reproduce/analysis/bash
pconfdir = reproduce/analysis/config
@@ -45,6 +46,29 @@ gconfdir = reproduce/software/config/gnuastro
+# Preparation phase
+# -----------------
+#
+# This Makefile is loaded both for the `prepare' phase and the `make'
+# phase. But the preparation files should be dealt with differently
+# (depending on the phase). In the `prepare' phase, the main directory
+# should be created, and in the `make' phase, its contents should be
+# loaded.
+#
+# If you don't need any preparation, please simply comment these lines.
+ifeq (x$(project-phase),xprepare)
+$(prepdir):; mkdir $@
+else
+include $(BDIR)/software/preparation-done.mk
+ifeq (x$(include-prepare-results),xyes)
+include $(prepdir)/*.mk
+endif
+endif
+
+
+
+
+
# TeX build directory
# ------------------
#