From 666d7880fb56268b84e5dc282077ab1205be567f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Mar 2016 20:50:13 +0000 Subject: works --- code/Makefile | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 code/Makefile (limited to 'code/Makefile') diff --git a/code/Makefile b/code/Makefile new file mode 100644 index 0000000..e5170e7 --- /dev/null +++ b/code/Makefile @@ -0,0 +1,65 @@ + +test.wav: test.s16 + sox -r 44100 -c 2 -t s16 $< -r 44100 -t wav $@ + + +#test.s16: lp +# ./lp >test.s16 || /bin/rm -f $@ +# + +test.s16:part.s16 + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< > $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@ + +part.s16: in.hpgl hpgl + hpgl < in.hpgl > part.s16 || /bin/rm -f $@ + +#part.s16:square +# square > $@ || /bin/rm -f $@ + +#lp:lp.c +# cc -o lp lp.c + +hpgl: hpgl.c + cc -o hpgl hpgl.c + + +#in.svg: +# echo "set term svg; set output 'in.svg'; plot sin(x) notitle " | gnuplot + +#in.ps: +# echo "set term post eps color solid ; set output 'in.ps'; plot sin(x) notitle " | gnuplot + + + +google.dat:google.csv + awk -F, '(NR % 10 == 0 ) {print $2}' < $< | tac > $@ || /bin/rm -f $@ + +in.hpgl: google.dat + echo "set term hpgl ; set output 'in.hpgl'; unset xtics; unset ytics; plot 'google.dat' with lines notitle " | gnuplot || /bin/rm -f $@ + +#in.hpgl: +# echo "set term hpgl ; set output 'in.hpgl'; plot 2 with lines notitle " | gnuplot + +#in.hpgl:in.ps +# pstoedit -f plot-hpgl -penplotter in.ps in.hpgl + +play: test.wav + aplay test.wav + +clean: + /bin/rm -f test.wav part.s16 test.s16 google.dat in.hpgl hpgl -- cgit v1.2.3