summaryrefslogtreecommitdiffstats
path: root/code/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/Makefile')
-rw-r--r--code/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/code/Makefile b/code/Makefile
index e5170e7..5c9f55a 100644
--- a/code/Makefile
+++ b/code/Makefile
@@ -1,3 +1,5 @@
+default: test.wav
+ scp test.wav laser64:
test.wav: test.s16
sox -r 44100 -c 2 -t s16 $< -r 44100 -t wav $@
@@ -26,7 +28,7 @@ test.s16:part.s16
cat $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< $< >> $@
part.s16: in.hpgl hpgl
- hpgl < in.hpgl > part.s16 || /bin/rm -f $@
+ ./hpgl < in.hpgl > part.s16 || /bin/rm -f $@
#part.s16:square
# square > $@ || /bin/rm -f $@
@@ -35,7 +37,7 @@ part.s16: in.hpgl hpgl
# cc -o lp lp.c
hpgl: hpgl.c
- cc -o hpgl hpgl.c
+ cc -o hpgl hpgl.c -lm
#in.svg:
@@ -46,17 +48,30 @@ hpgl: hpgl.c
-google.dat:google.csv
- awk -F, '(NR % 10 == 0 ) {print $2}' < $< | tac > $@ || /bin/rm -f $@
+#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; 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'; plot 2 with lines notitle " | gnuplot
+# 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=$@ $<
-#in.hpgl:in.ps
-# pstoedit -f plot-hpgl -penplotter in.ps in.hpgl
+#pstoedit -f plot-hpgl -penplotter in.svg in.hpgl
play: test.wav
aplay test.wav