ref: 21b0ea38419d431dc8d9492df9761c348df3558b
dir: /mkfile/
</$objtype/mkfile
MAN=/sys/man/1
TARG=mcfs
BIN=/$objtype/bin
OFILES=\
	aac.$O\
	crc32.$O\
	ebml.$O\
	iso.$O\
	ivf.$O\
	main.$O\
	matroska.$O\
	ogg.$O\
	srt.$O\
HFILES=\
	common.h\
	ebml.h\
	packet.h\
default:V: all
./extra/%:
	cd extra
	mk $stem
</sys/src/cmd/mkone
SAMPLES=../matroska-test-files/test_files
test:V: $O.out ./extra/$O.mkvdump
	test -d $SAMPLES
	for(f in $SAMPLES/*.mkv){
		echo $f
		./$O.out $f
		./extra/$O.mkvdump $f >/dev/null
	}