aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 3729f6a81b5077b5e2837d9606c72d6a41b5d42f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Makefile for codec2.pdf

# 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
CODEC2_BINARY ?= $(HOME)/codec2/build_linux/src

PATH := $(PATH):$(CODEC2_BINARY)

PLOT_FILES := hts2a_37_sn.tex  hts2a_37_sw.tex

$(PLOT_FILES):
	echo $(PATH)
	c2sim $(CODEC2_SRC)/raw/hts2a.raw --dump hts2a
	DISPLAY=""; printf "plamp('hts2a',f=37,epslatex=1)\nq\n" | octave-cli -qf -p $(CODEC2_SRC)/octave