grafana-sms-alert/Makefile

11 lines
317 B
Makefile
Raw Normal View History

.DELETE_ON_ERROR:
default: unicode-to-gsm.lua
install: default
mkdir -p $(TARGET)/lib/
cp *.{fnl,lua} $(TARGET)/lib
unicode-to-gsm.lua: GSM0338.TXT
sed '/^#/d' < $^ |awk 'BEGIN {print "return {"} { if($$1 != "#") { print "[" strtonum($$2) "]=" $$1 ", -- " substr($$0, match($$0,$$2)) }} END {print "}"}' >$@