Makefile
author František Kučera <franta-hg@frantovo.cz>
Tue, 19 May 2020 22:56:20 +0200
branchv_0
changeset 0 dcdd12e654da
permissions -rw-r--r--
first working version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
sysex2smf: sysex2smf.cpp
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
	g++ -fno-omit-frame-pointer -fsanitize=address -o sysex2smf sysex2smf.cpp $(shell pkg-config --cflags --libs smf)
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
clean:
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
	rm -f sysex2smf
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
	rm -f test.mid
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
test.txt:
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
	echo ahoj > test.txt
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
test.syx: test.txt
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
	cat test.txt | tr -d \\n | ../mt-32-display/mt-32-display | sed -r 's/[^abcdefABCDEF0-9]|(--[^--]*--)//g' | sed 's/../\\\\x\0/g' | xargs echo -en > test.syx
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
test.mid: sysex2smf test.syx
dcdd12e654da first working version
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
	cat test.syx | ./sysex2smf test.mid