diff options
| author | drowe67 <[email protected]> | 2023-12-12 09:50:48 +1030 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-12 09:50:48 +1030 |
| commit | 93dbb6290495ccb194759506372b72fac1b1b104 (patch) | |
| tree | c7a57ab014674259999feb3b2eba0dd004a5f664 /doc/Makefile | |
| parent | 4f4f7304542c4c3ef49d443ae78732b0e6683a0f (diff) | |
| parent | b8e452709330c75abfab55919575966da3bb030c (diff) | |
Merge pull request #31 from drowe67/dr-codec2-doc
WP2000 - Codec 2 Algorithm Description
Diffstat (limited to 'doc/Makefile')
| -rw-r--r-- | doc/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..659d4f6 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,35 @@ +# Makefile for codec2.pdf +# +# usage: +# Build codec2 with -DUNITEST=1 (see README) +# cd ~/codec2/doc +# make + +DOCNAME ?= codec2 + +# Set these externally to override defaults. JOBNAME sets the output file basename, +# and avoids over writing codec2.pdf (e.g. when we are running a doc build test, but don't actually +# want to change codec2.pdf in the repo) + +CODEC2_SRC ?= $(HOME)/codec2 +CODEC2_BINARY ?= $(HOME)/codec2/build_linux +JOBNAME ?= $(DOCNAME) + +PATH := $(PATH):$(CODEC2_BINARY)/src + +PLOT_FILES := hts2a_37_sn.tex hts2a_37_sw.tex hts2a_37_lpc_lsp.tex hts2a_37_lpc_pf.tex + +$(DOCNAME).pdf: $(PLOT_FILES) $(DOCNAME).tex $(DOCNAME)_refs.bib + pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex + bibtex $(JOBNAME).aux + pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex + pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex + +$(PLOT_FILES): + echo $(PATH) + c2sim $(CODEC2_SRC)/raw/hts2a.raw --dump hts2a --lpc 10 --lsp --lpcpf + DISPLAY=""; printf "plamp('hts2a',f=37,epslatex=1)\nq\n" | octave-cli -qf -p $(CODEC2_SRC)/octave + +.PHONY: clean +clean: + rm -f *.blg *.bbl *.aux *.log *.out hts2a* |
