aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/initialize.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-02-08 09:55:59 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-02-08 09:55:59 +0100
commit0888a2b9017f1e588c011520326dd7eb30d60697 (patch)
treeb9612e4bafe696418afd7dc5d9eee39109c2230d /reproduce/src/make/initialize.mk
parent65d9e1b9d1a6582fbf90f83d39a629ef25cee2b1 (diff)
Initialization results now a .PHONY target
Recently the filename keeping TeX macros for the versions was changed from `versions.tex' to `initialization.tex' (since it also contained the build directory). However, it was forgotten to correct the change of name in the `.PHONY' targets, so it was not being rebuilt every time. This is corrected now.
Diffstat (limited to 'reproduce/src/make/initialize.mk')
-rw-r--r--reproduce/src/make/initialize.mk16
1 files changed, 10 insertions, 6 deletions
diff --git a/reproduce/src/make/initialize.mk b/reproduce/src/make/initialize.mk
index 2da5e79..1478881 100644
--- a/reproduce/src/make/initialize.mk
+++ b/reproduce/src/make/initialize.mk
@@ -65,7 +65,7 @@ $(texdir) $(lockdir): | $(BDIR); mkdir $@
# included here ensure that the file is always built in every run: for
# example the pipeline versions may change within two separate runs, so we
# want it to be rebuilt every time.
-.PHONY: all clean clean-mmap $(texdir)/versions.tex
+.PHONY: all clean clean-mmap $(mtexdir)/initialize.tex
clean-mmap:; rm -f reproduce/config/gnuastro/mmap*
clean:
rm -rf $(BDIR) $(bdirsym) *.pdf *.log *.out *.aux *.auxlock \
@@ -75,21 +75,25 @@ clean:
-# Pipeline version
-# ----------------
+# Pipeline initialization results
+# -------------------------------
#
-# The pipeline's version is necessary for the analysis and must be
-# calculated everytime the pipeline is run, so even though this file
+# This file will store some basic info about the pipeline that is necessary
+# for the final PDF. Since these are not version controlled, it must be
+# calculated everytime the pipeline is run. So even though this file
# actually exists, it is also aded as a `.PHONY' target above.
$(mtexdir)/initialize.tex: | $(mtexdir)
+ # Version of the pipeline.
@v=$$(git describe --dirty --always); \
echo "\newcommand{\pipelineversion}{$$v}" > $@
+ # Version of Gnuastro.
@v=$$(astnoisechisel --version | awk 'NR==1{print $$NF}'); \
echo "\newcommand{\gnuastroversion}{$$v}" >> $@
- echo "\newcommand{\bdir}{$(BDIR)}" >> $@
+ # Location of the build directory (for LaTeX inputs).
+ echo "\newcommand{\bdir}{$(BDIR)}" >> $@