From 4230cefd85348f297224596fd9db927793fcb39b Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Tue, 1 Oct 2019 18:13:05 +0100 Subject: 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'. --- reproduce/analysis/make/initialize.mk | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'reproduce/analysis/make/initialize.mk') 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 # ------------------ # -- cgit v1.2.1