xref: /plan9-contrib/sys/src/cmd/usb/mkfile (revision 3a827ddc0d2b12553857670f716c3312daad326e)
1</$objtype/mkfile
2
3# order matters here.  build lib first and usbd last.
4DIRS=\
5	lib\
6	audio\
7	disk\
8	ether\
9	kb\
10	print\
11	serial\
12	usbd\
13
14UPDATE=\
15	mkfile\
16
17default:V: all
18
19none:VQ:
20	echo mk all, install, installall, safeinstall, safeinstallall, clean, nuke, or update
21
22all clean nuke:VQ:
23	for (i in $DIRS) @{
24		cd $i && echo $i: && mk $target
25	}
26
27install installall safeinstall safeinstallall:V:
28	for (i in $DIRS) @{
29		cd $i && mk $target
30	}
31	cp probe /$objtype/bin/usb/probe
32
33update:V:
34	update $UPDATEFLAGS $UPDATE
35	for (i in $DIRS) @{
36		echo update $i
37		cd $i && mk 'UPDATEFLAGS='$"UPDATEFLAGS update
38	}
39