shithub: riscv

ref: 1c7e58e75bc6b5620984f164d66354350b28dfe0
dir: /sys/src/libc/mkfile/

View raw version
</$objtype/mkfile

PORTDIRS=9sys 9syscall fmt port
DIRS=$PORTDIRS $CPUS
OLDCPUS=68000 68020 sparc

all install:V:
	for(i in $PORTDIRS $objtype)@{
		echo $i
		cd $i
		mk $MKFLAGS install
	}

clean:V:
	for(i in $DIRS $OLDCPUS test)@{
		echo $i
		cd $i
		mk $MKFLAGS clean
	}

nuke:V:
	for(i in $PORTDIRS $objtype)@{
		echo $i
		cd $i
		mk $MKFLAGS nuke
	}
	# do not nuke other objtypes
	for(i in $CPUS)@{
		echo $i
		cd $i
		mk $MKFLAGS clean
	}

update:V:
	for(i in $DIRS)@{
		echo $i
		cd $i
		mk $MKFLAGS update
	}
	update $UPDATEFLAGS /386/lib/libc.a

installall:V:
	for(objtype in $CPUS) mk $MKFLAGS install

everything:V:
	rm -f */*.[012456789kqvxz]
	for(objtype in $CPUS $OLDCPUS)@{
		echo $objtype
		mk $MKFLAGS install
	}
	rm -f */*.[012456789kqvxz]

test:V:
	cd test && mk $MKFLAGS test