aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-22 17:30:33 +0100
committerNao Pross <np@0hm.ch>2021-12-22 17:30:33 +0100
commita947a87a8b7b4d366b4a7e260f881709b21872c6 (patch)
treef383770a026dc500dbfc6ac4727f301507b8c4d5 /doc
parentRemove external/force remake (diff)
downloadFading-a947a87a8b7b4d366b4a7e260f881709b21872c6.tar.gz
Fading-a947a87a8b7b4d366b4a7e260f881709b21872c6.zip
Create makefile for slides
Diffstat (limited to 'doc')
-rw-r--r--doc/slides/Makefile62
l---------doc/slides/figures1
l---------doc/slides/tex1
3 files changed, 64 insertions, 0 deletions
diff --git a/doc/slides/Makefile b/doc/slides/Makefile
new file mode 100644
index 0000000..912d603
--- /dev/null
+++ b/doc/slides/Makefile
@@ -0,0 +1,62 @@
+TEX := xelatex
+TEXARGS := --halt-on-error --interaction=nonstopmode --shell-escape=1 --enable-write18
+
+SOURCES := \
+ slides.tex \
+ \
+ tex/docmacros.sty \
+ \
+ figures/tikz/overview.tex \
+ figures/tikz/psk-constellation.tex \
+ figures/tikz/qam-modulator.tex \
+ figures/tikz/qam-constellation.tex \
+ figures/tikz/multipath-sketch.tex \
+ figures/tikz/multipath-impulse-response.tex \
+ figures/tikz/multipath-frequency-response-plots.tex \
+ figures/tikz/tapped-delay-line.tex \
+ figures/tikz/ring-of-scattering-objects.tex \
+ figures/tikz/rayleigh-rice-pdf-plots.tex \
+ figures/tikz/packet-frame.tex \
+ figures/tikz/qpsk-simulations-static.tex \
+ figures/tikz/qpsk-simulations-dynamic.tex \
+ figures/tikz/qam-simulations-dynamic.tex \
+ figures/tikz/hardware.tex
+
+DATA := \
+ figures/data/multipath_frequency_response.dat
+
+# Get the main file from the file
+MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES))
+PDF := $(patsubst %.tex, %.pdf, $(MAIN))
+
+ifeq ($(strip $(MAIN)),)
+MAIN := $(error Failed to identify TeX root, try adding \
+ `% !TeX root = <filename>` to your main tex file)
+endif
+
+.PHONY: all
+all: $(PDF)
+
+%.dat: %.py
+ /usr/bin/env python3 $<
+
+%.pdf: %.tex $(SOURCES) $(DATA)
+ $(TEX) $(TEXARGS) $<
+ $(TEX) $(TEXARGS) $<
+ # embed fonts
+ # gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEmbedAllFonts=true -sOutputFile=$@_font_embedded.pdf -f $@
+
+.PHONY: clean cleanall
+clean:
+ @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs *.lol *.auxlock *.figlist
+ @rm -vf tex/*.aux
+ @rm -vf chapters/*.aux
+ @rm -vf figures/tikz/*.aux
+ @rm -vfrd figures/externalized
+
+cleanall: clean
+ @rm -vf $(PDF)
+
+.PHONY: continuous
+continuous:
+ ls $(SOURCES) | entr -d make
diff --git a/doc/slides/figures b/doc/slides/figures
new file mode 120000
index 0000000..ee014da
--- /dev/null
+++ b/doc/slides/figures
@@ -0,0 +1 @@
+../thesis/figures \ No newline at end of file
diff --git a/doc/slides/tex b/doc/slides/tex
new file mode 120000
index 0000000..3da1b64
--- /dev/null
+++ b/doc/slides/tex
@@ -0,0 +1 @@
+../thesis/tex \ No newline at end of file