gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 0c5cf18: Bootstrapping: shell check to see if


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 0c5cf18: Bootstrapping: shell check to see if tikz directory exists
Date: Mon, 1 Feb 2021 06:27:19 -0500 (EST)

branch: master
commit 0c5cf18fe2dbaab21da78354b4ad1e673516b005
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Bootstrapping: shell check to see if tikz directory exists
    
    Until now during the bootstrapping (where we build the figures used in the
    paper), we were using 'mkdir -p'. But the '-p' option to 'mkdir' is not
    portable and primarily exists in GNU Coreutils.
    
    With this commit 'tikz' is now a Make order-only target, so we don't need
    the '-p' option to 'mkdir' any more. This is because 'mkdir' is only called
    when it doesn't exist.
---
 doc/plotsrc/Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/doc/plotsrc/Makefile b/doc/plotsrc/Makefile
index a6c707d..2d956ad 100644
--- a/doc/plotsrc/Makefile
+++ b/doc/plotsrc/Makefile
@@ -27,11 +27,16 @@ all: all.pdf
 
 
 
-# Make all the plots and convert all the figures
-all.pdf: all.tex ./tex/*.tex ./conversions.sh
+# Directory to keep TiKZ products.
+tikz:
+       mkdir $@
+
+
 
-#       Make the tikz directory if it doesn't exist:
-       mkdir -p tikz
+
+
+# Make all the plots and convert all the figures
+all.pdf: all.tex ./tex/*.tex ./conversions.sh | tikz
 
 #       Run the LaTeX script:
        latex -shell-escape all.tex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]