From 0888a2b9017f1e588c011520326dd7eb30d60697 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Thu, 8 Feb 2018 09:55:59 +0100 Subject: 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. --- reproduce/src/make/initialize.mk | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'reproduce/src/make') 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)}" >> $@ -- cgit v1.2.1