shithub: riscv

ref: 94e7de15311c12c6fba68cc3ccffdc16945eb9fb
dir: /sys/src/cmd/usb/mkfile/

View raw version
</$objtype/mkfile

# order matters here.  build lib first and usbd last.
DIRS=\
	lib\
	audio\
	disk\
	ether\
	kb\
	print\
	serial\
	usbd\

UPDATE=\
	mkfile\

default:V: all

none:VQ:
	echo mk all, install, installall, safeinstall, safeinstallall, clean, nuke, or update

all clean nuke:VQ:
	for (i in $DIRS) @{
		cd $i && echo $i: && mk $target
	}

install installall safeinstall safeinstallall:V:
	for (i in $DIRS) @{
		cd $i && mk $target
	}
	cp probe /$objtype/bin/usb/probe

update:V:
	update $UPDATEFLAGS $UPDATE
	for (i in $DIRS) @{
		echo update $i
		cd $i && mk 'UPDATEFLAGS='$"UPDATEFLAGS update
	}