From 69a6e7cea14d7310d84012b4870eb3464046c6ff Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 28 May 2020 18:26:02 -0400 Subject: outputs/ made into symlink --- Makefile.orig | 18 +++++++++--------- configure | 2 -- outputs/document.pdf | 1 + outputs/poster.pdf | 1 + outputs/report.pdf | 1 + 5 files changed, 12 insertions(+), 11 deletions(-) create mode 120000 outputs/document.pdf create mode 120000 outputs/poster.pdf create mode 120000 outputs/report.pdf 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 -- cgit