aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-28 18:26:02 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-28 18:27:39 -0400
commit69a6e7cea14d7310d84012b4870eb3464046c6ff (patch)
tree7a2a6184ee818e0f2c176680307b0596e13d968f
parente56e36cb400c605baeec1f304927f9fe78bd428d (diff)
outputs/ made into symlink
-rw-r--r--Makefile.orig18
-rwxr-xr-xconfigure2
l---------outputs/document.pdf1
l---------outputs/poster.pdf1
l---------outputs/report.pdf1
5 files changed, 12 insertions, 11 deletions
diff --git a/Makefile.orig b/Makefile.orig
index 3f23a3c..68f8903 100644
--- a/Makefile.orig
+++ b/Makefile.orig
@@ -1,18 +1,18 @@
.POSIX:
.SUFFIXES: .tex .pdf
-DIRS = outputs graph
PDFS = poster/document.pdf report/document.pdf logbook/document.pdf
+QR = outputs/qr.png outputs/qr-source.png
PYTHON = python3
PDFTEX = pdftex
GHOSTSCRIPT = gs
-pdfs: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf
-$(DIRS):
- mkdir -p $@
+pdfs: $(PDFS)
+graph:
+ mkdir -p graph
png: outputs/poster.png
clean:
- rm -rf imgs gen/tables.tex $(DIRS) data/tables.tex $(PDFS)
+ rm -rf imgs graph gen/tables.tex data/tables.tex $(PDFS) $(QR)
imgs: python/data.py python/img.py
mkdir -p imgs
@@ -28,14 +28,14 @@ graph/nearest_neighbor.png: python/data.py python/neighbor.py graph
graph/made: graph/depth_width.png graph/nearest_neighbor.png graph
touch graph/made
-outputs/poster.png: outputs/poster.pdf outputs
+outputs/poster.png: poster/document.pdf
$(GHOSTSCRIPT) -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf
$(PDFS): gen/tables.tex imgs graph/made
.tex.pdf:
cd ${@D} && \
- $(PDFTEX) document.tex >/dev/null
+ $(PDFTEX) document.tex
rm ${@D}/document.log
poster/document.pdf: outputs/qr-source.png outputs/qr.png
@@ -43,8 +43,8 @@ logbook/document.pdf report/document.pdf: generic.tex
logbook/tables.tex poster/tables.tex: data/tables.tex
-outputs/qr.png: outputs
+outputs/qr.png:
qrencode https://hrhr.dev/report.pdf -o outputs/qr.png
-outputs/qr-source.png: outputs
+outputs/qr-source.png:
qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png
diff --git a/configure b/configure
index 00d5722..8789201 100755
--- a/configure
+++ b/configure
@@ -14,8 +14,6 @@ for tgt in */document.tex; do
DIR=$(dirname $tgt)
( echo -en "\n${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
-type d \! -name "document.tex" -a -name "*.tex" -exec echo {} +; ) >> Makefile
- echo -e "\noutputs/${DIR}.pdf: ${DIR}/document.pdf outputs\n\tcp -f $< \$@"\
- >> Makefile
done
for gen in gen/*.orig.tex; do
diff --git a/outputs/document.pdf b/outputs/document.pdf
new file mode 120000
index 0000000..e00fe07
--- /dev/null
+++ b/outputs/document.pdf
@@ -0,0 +1 @@
+../logbook/document.pdf \ No newline at end of file
diff --git a/outputs/poster.pdf b/outputs/poster.pdf
new file mode 120000
index 0000000..471dfbf
--- /dev/null
+++ b/outputs/poster.pdf
@@ -0,0 +1 @@
+../poster/document.pdf \ No newline at end of file
diff --git a/outputs/report.pdf b/outputs/report.pdf
new file mode 120000
index 0000000..e556b83
--- /dev/null
+++ b/outputs/report.pdf
@@ -0,0 +1 @@
+../report/document.pdf \ No newline at end of file