diff options
-rwxr-xr-x | project | 15 | ||||
-rw-r--r-- | reproduce/analysis/make/demo-plot.mk | 12 |
2 files changed, 12 insertions, 15 deletions
@@ -411,11 +411,16 @@ EOF # Run the actual project. controlled_env reproduce/analysis/make/top-make.mk - # Print the number of words (if the user has pdftotext. - if which pdftotext &> /dev/null; then - numwords=$(pdftotext paper.pdf && cat paper.txt | wc -w) - echo; echo "Number of words in full PDF: $numwords" - rm paper.txt + # Print the number of words (if the user has pdftotext outside of + # Maneage! For now!!!), AND there actually is a 'paper.pdf' (for + # example when running './project make clean' there isn't any + # 'paper.pdf'). + if [ -f paper.pdf ]; then + if which pdftotext &> /dev/null; then + numwords=$(pdftotext paper.pdf && cat paper.txt | wc -w) + echo; echo "Number of words in full PDF: $numwords" + rm paper.txt + fi fi ;; diff --git a/reproduce/analysis/make/demo-plot.mk b/reproduce/analysis/make/demo-plot.mk index 5ddb3d7..dc44c4e 100644 --- a/reproduce/analysis/make/demo-plot.mk +++ b/reproduce/analysis/make/demo-plot.mk @@ -16,19 +16,11 @@ -# Directory to host outputs -# ------------------------- -a2dir = $(texdir)/to-publish -$(a2dir):; mkdir $@ - - - - # Table for Figure 1C of Menke+20 # ------------------------------- -a2mk20f1c = $(a2dir)/tools-per-year.txt -$(a2mk20f1c): $(mk20tab3) | $(a2dir) +a2mk20f1c = $(tex-publish-dir)/tools-per-year.txt +$(a2mk20f1c): $(mk20tab3) | $(tex-publish-dir) # Remove the (possibly) produced figure that is created from this # table: it is created by LaTeX's TiKZ package, and includes |