From c66f973ff865d0cdec38f940430221addb32c76f Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sun, 8 Mar 2020 00:51:30 +0000 Subject: Edited description of example subMakefile for analysis-1 In order to make the description more clear and readable, the rules in the demonstrated Makefile (and their links to the data lineage plot) were made more clear. --- tex/src/figure-mk20tab3.tex | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'tex/src/figure-mk20tab3.tex') diff --git a/tex/src/figure-mk20tab3.tex b/tex/src/figure-mk20tab3.tex index ebeac0e..96468bb 100644 --- a/tex/src/figure-mk20tab3.tex +++ b/tex/src/figure-mk20tab3.tex @@ -1,6 +1,6 @@ \begin{tcolorbox} \footnotesize - \texttt{\mkcomment{Define and build the directory hosting the final table.}} + \texttt{\mkcomment{1ST MAKE RULE: build the directory hosting the used table.}} \texttt{\mkvar{a1dir} = \$(\mkvar{BDIR})/analysis-1} @@ -8,8 +8,8 @@ \texttt{\mktab{}\mkprog{mkdir} \$@} - \vspace{1.5em} - \texttt{\mkcomment{Define and build the main target.}} + \vspace{2em} + \texttt{\mkcomment{2ND MAKE RULE: Convert the XLSX table to a simple plain-text table.}} \texttt{\mkvar{mk20tab3} = \$(\mkvar{a1dir})/menke20-table-3.txt} @@ -37,8 +37,8 @@ \texttt{\mktab{}\mkprog{rm} table-3.csv} - \vspace{1.5em} - \texttt{\mkcomment{Main LaTeX macro file}} + \vspace{2em} + \texttt{\mkcomment{3RD MAKE RULE: Main LaTeX macro file for reported values.}} \texttt{\mktarget{\$(mtexdir)/analysis1.tex}: \$(\mkvar{mk20tab3)}} @@ -47,4 +47,13 @@ \texttt{\mktab{}v=\$\$(\mkprog{awk} '\!/\^{}\#/\{c+=\$\$2\} END\{print c\}' \$(\mkvar{mk20tab3)})} \texttt{\mktab{}\mkprog{echo} "\textbackslash{}newcommand\{\textbackslash{}menkenumpapers\}\{\$\$v\}" > \$@} + + \vspace{0.5em} + \texttt{\recipecomment{Count total number of journals in that study.}} + + \texttt{\mktab{}v=\$\$(awk 'BEGIN{FIELDWIDTHS="31 10000"} !/\^\#/\{print \$\$2\}' \$(mk20tab3) \textbackslash} + + \texttt{\mktab{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }| uniq | wc -l)} + + \texttt{\mktab{}\mkprog{echo} "\textbackslash{}newcommand\{\textbackslash{}menkenumjournals\}\{\$\$v\}" >> \$@} \end{tcolorbox} -- cgit v1.2.1