ToastFreeware
/
toast
/
airingbutler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd2475f
)
add Makefile target to massage log data
author
gregor herrmann
<gregor@toastfreeware.priv.at>
Mon, 26 Oct 2020 02:25:27 +0000
(
03:25
+0100)
committer
gregor herrmann
<gregor@toastfreeware.priv.at>
Mon, 26 Oct 2020 02:25:27 +0000
(
03:25
+0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index dd82311de0d39e09da94c87fdde440124f13cdfb..7a650c1079f7ded44827a4d77b4058d52087b671 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,3
+2,16
@@
BOARD_TAG=uno
MONITOR_PORT=/dev/ttyACM0
# ARDUINO_SKETCHBOOK=~/sketchbook
include /usr/share/arduino/Arduino.mk
+
+all: $(CURDIR)
+
+# log is the result of
+# annotate-output ./log_mhz19.py -d /dev/ttyACM3 | tee -a log
+# and we want log.csv for plot_mhz19.py
+log.csv: log
+ cp $< $@
+ fromdos $@
+ sed -i -e '/Started/ d' -e 's/ O: /,/g' $@
+ perl -ni -e 'BEGIN{$$i=0}; print if ($$_ !~ /CO2/ || $$i == 0); $$i++;' $@
+
+.PHONY: log.csv