aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-28 17:32:38 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-28 17:32:38 -0400
commit090dc2da6abd7dfcb9ab22559ccb684700148794 (patch)
tree6602dd248079a093176e3ec4e3901120df677972
parentbd2ee55ce5fd7c5a0365204382bf48776061ba2f (diff)
./configure replaces manual tex search
-rw-r--r--Makefile.orig7
-rwxr-xr-xconfigure8
2 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.orig b/Makefile.orig
index f55bb12..6d668ef 100644
--- a/Makefile.orig
+++ b/Makefile.orig
@@ -42,12 +42,6 @@ $(PDFS): gen/tables.tex imgs graph/made
pdftex document.tex >/dev/null
rm ${@D}/document.log
-poster/document.pdf: poster/abstract.tex poster/analysis.tex poster/conclusion.tex poster/document.tex poster/format.tex poster/hypothesis.tex poster/imagesfive.tex poster/imagesfour.tex poster/imagesone.tex poster/imagesthree.tex poster/imagestwo.tex poster/materials.tex poster/methods.tex poster/notes.tex poster/palette.tex poster/research.tex poster/results.tex poster/vars.tex poster/voronoi.tex
-
-report/document.pdf: report/abstract.tex report/analysis.tex report/biblio.tex report/conclusion.tex report/document.tex report/format.tex report/graphs.tex report/intro.tex report/materials.tex report/pics.tex report/procedure.tex report/research.tex report/tables.tex
-
-logbook/document.pdf: logbook/biblio.tex logbook/bulletnotes.tex logbook/conclusion.tex logbook/document.tex logbook/hypothesis.tex logbook/mats.tex logbook/methods.tex logbook/research.tex logbook/vars.tex
-
gen/tables.tex: gen/maketables.sh gen/tables.orig.tex
gen/maketables.sh
@@ -61,4 +55,3 @@ outputs/qr.png: outputs
outputs/qr-source.png: outputs
qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png
-
diff --git a/configure b/configure
new file mode 100755
index 0000000..91ce029
--- /dev/null
+++ b/configure
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+cp Makefile.orig Makefile
+for tgt in */document.tex; do
+ DIR=$(dirname $tgt)
+ ( echo; echo -n "${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
+ -type d \! -name "document.tex" -a -name "*.tex" -exec echo {} +; ) >> Makefile
+done