aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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