blob: 5c9f55a1d529b7a72653558dc21fefe827e29ff0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
default: test.wav
scp test.wav laser64:
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 -lm
#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 $$7}' < $< | tail -n +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 $@
echo "set term hpgl ; set output 'in.hpgl'; unset xtics; unset ytics; unset border; plot 'google.dat' with lines notitle " | gnuplot || /bin/rm -f $@
# echo "set term hpgl ; set output 'in.hpgl'; plot 'google.dat' with lines notitle " | gnuplot || /bin/rm -f $@
# echo "set term hpgl ; set output 'in.hpgl'; set grid ytics xtics linestyle 1; plot 'google.dat' with lines notitle " | gnuplot || /bin/rm -f $@
#set grid ytics xtics linestyle 1
#in.hpgl: drawing.hpgl
# cp $< $@
#in.hpgl:
# echo "set term hpgl ; set output 'in.hpgl'; set grid ytics; plot 2 with lines notitle " | gnuplot
in.hpgl:in.ps
pstoedit -f plot-hpgl -penplotter in.ps in.hpgl
in.ps:in.svg
inkscape --export-ps=$@ $<
#pstoedit -f plot-hpgl -penplotter in.svg in.hpgl
play: test.wav
aplay test.wav
clean:
/bin/rm -f test.wav part.s16 test.s16 google.dat in.hpgl hpgl
|