summaryrefslogtreecommitdiff
path: root/ma/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ma/Makefile')
-rw-r--r--ma/Makefile35
1 files changed, 33 insertions, 2 deletions
diff --git a/ma/Makefile b/ma/Makefile
index 799d885..2999ef9 100644
--- a/ma/Makefile
+++ b/ma/Makefile
@@ -8,6 +8,8 @@ SHELL := bash
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
+VERSION_STRING := $(shell git describe --tags --long --dirty)
+
all: safety_reset.pdf
#safety_reset.pdf: resources/grid_freq_estimation.pdf
@@ -15,22 +17,51 @@ all: safety_reset.pdf
#safety_reset.pdf: resources/dsss_experiments-ber.pdf
#safety_reset.pdf: resources/freq_meas_validation_rocof_testsuite.pdf
-%.pdf: %.tex %.bib version.tex
+%.pdf %-extra-appendices.pdf: %.tex %.bib version.tex
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
+ pdflatex -shell-escape -jobname $*-extra-appendices "\def\includenotebooks{1} \def\includefirmwaresources{1} \input{$<}"
+ biber $*-extra-appendices
+ pdflatex -shell-escape -jobname $*-extra-appendices "\def\includenotebooks{1} \def\includefirmwaresources{1} \input{$<}"
.PHONY: preview
preview:
pdflatex -shell-escape safety_reset.tex
version.tex: safety_reset.tex safety_reset.bib
- git describe --tags --long --dirty > $@
+ echo "${VERSION_STRING}" > $@
resources/%.pdf: $(LAB_PATH)/%.ipynb
jupyter-nbconvert --to=pdf --output-dir=resources --output=$* --LatexExporter.template_file=resources/nbexport.tplx $^
+sdcard: safety_reset.pdf
+ rm -rf sdcard
+ mkdir -p sdcard
+ git clone .. sdcard/git
+ cp safety_reset.pdf sdcard/thesis-goette-${VERSION_STRING}.pdf
+ cp safety_reset-extra-appendices.pdf sdcard/thesis-goette-with-sources-${VERSION_STRING}.pdf
+ mkdir -p sdcard/data
+ cp ../controller/fw/src/EasyMeter_Q3DA1002_V3.03_fw_dump_0xc000.h \
+ '../lab-windows/dsss_experiments_res-2020-04-11 13:54:54.json' \
+ '../lab-windows/dsss_experiments_res-2020-04-16 16:55:49.json' \
+ '../lab-windows/dsss_experiments_res-2020-04-16 16:56:46.json' \
+ '../lab-windows/dsss_experiments_res-2020-04-16 17:24:04.json' \
+ '../lab-windows/dsss_experiments_res-2020-05-06 19:35:22.json' \
+ '../lab-windows/dsss_experiments_res-2020-07-04 16:43:39.json' \
+ ../lab-windows/dsss_test_signals/dsss_test_noisy_padded.bin \
+ ../lab-windows/emulated_adc_readings_01.bin \
+ ../lab-windows/filtered_freq.bin \
+ ../lab-windows/grid_freq_psd_spl_108pt.json \
+ ../lab-windows/raw_freq.bin \
+ ../lab-windows/synth_sig_test_0123_01.flac \
+ ../lab-windows/synth_sig_test_0123_02.flac \
+ ../lab-windows/waveform.sqlite3 \
+ sdcard/data/
+ cp ../data/* sdcard/data/
+
.PHONY: clean
clean:
rm -f safety_reset.aux safety_reset.bbl safety_reset.bcf safety_reset.log safety_reset.blg
rm -f safety_reset.out safety_reset.run.xml texput.log
+