diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-03-08 00:51:30 +0000 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-03-08 00:51:30 +0000 |
commit | c66f973ff865d0cdec38f940430221addb32c76f (patch) | |
tree | 725e54663c2516a02acce4fbcb243eb22fb96355 /tex | |
parent | e9c81f9f40187bc4701ac539d110003e92b9ca69 (diff) |
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.
Diffstat (limited to 'tex')
-rw-r--r-- | tex/src/figure-mk20tab3.tex | 19 |
1 files changed, 14 insertions, 5 deletions
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} |