diff options
| author | drowe67 <[email protected]> | 2023-12-10 12:37:41 +1030 |
|---|---|---|
| committer | David Rowe <[email protected]> | 2023-12-10 12:37:41 +1030 |
| commit | 05110e5fa8f10ac8fe7bd7aba2169a44c11ef7d9 (patch) | |
| tree | 8c3b1a75d2eda9fb835f4ab1f2d39791ab557046 /doc/Makefile | |
| parent | d1c085a180560b47d9c43f4b359707ff00d9e749 (diff) | |
first pass at Makefile to build doc
Diffstat (limited to 'doc/Makefile')
| -rw-r--r-- | doc/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile index aba973c..1eaab1b 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,6 +1,11 @@ # Makefile for codec2.pdf +# +# usage: +# Build codec2 with -DDUMP (see README) +# cd ~/codec2/doc +# make -# set these externally with an env variable (e.g. for GitHub action) to override +# Set these externally with an env variable (e.g. for GitHub action) to override # defaults below. Need to run cmake with -DDUMP CODEC2_SRC ?= $(HOME)/codec2 @@ -8,11 +13,20 @@ CODEC2_BINARY ?= $(HOME)/codec2/build_linux/src PATH := $(PATH):$(CODEC2_BINARY) -PLOT_FILES := hts2a_37_sn.tex hts2a_37_sw.tex hts2a_37_lsp.tex +DOCNAME := codec2 +PLOT_FILES := hts2a_37_sn.tex hts2a_37_sw.tex hts2a_37_lpc_lsp.tex hts2a_37_lpc_pf.tex -all: $(PLOT_FILES) +$(DOCNAME).pdf: $(PLOT_FILES) $(DOCNAME).tex $(DOCNAME)_refs.bib + pdflatex $(DOCNAME).tex + bibtex $(DOCNAME).aux + pdflatex $(DOCNAME).tex + pdflatex $(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 *.blg *.bbl *.aux *.log $(DOCNAME).pdf
\ No newline at end of file |
