shithub: riscv

ref: 614b18484cb754c4ba936d143016b558845073b1
dir: /sys/src/cmd/upas/mkfile/

View raw version
</$objtype/mkfile

LIBS=common
PROGS=\
	Mail\
	alias\
	bayes\
	binscripts\
	filterkit\
	fs\
	imap4d\
	marshal\
	ml\
	ned\
	pop3\
	q\
	scanmail\
	send\
	smtp\
	spf\
	unesc\
	vf\

#libs must be made first
DIRS=$LIBS $PROGS

UPDATE=\
	mkfile\
	/sys/man/1/mail\

all:V:
	for (i in $DIRS) @{
		cd $i
		mk all
	}

clean:V:
	for (i in $DIRS) @{
		cd $i
		mk clean
	}

nuke:V:
	for (i in $LIBS) @{
		cd $i
		mk nuke
	}
	for (i in $PROGS) @{
		cd $i
		mk clean
	}

install:V:
	for (i in $DIRS) @{
		cd $i
		mk install
	}

installall:V:
	for (i in $DIRS) @{
		cd $i
		mk installall
	}
	for (i in $DIRS) @{
		cd $i
		mk clean
	}

safeinstallall:V:
	for (i in $LIBS) @{
		cd $i
		mk installall
	}
	for (i in $PROGS) @{
		cd $i
		mk safeinstallall
	}
	for (i in $DIRS) @{
		cd $i
		mk clean
	}

update:V:
	update $UPDATEFLAGS $UPDATE
	for (i in $DIRS) @{
		cd $i
		echo '>>>>>>>>>>' `{pwd} '<<<<<<<<<<<'
		mk $MKFLAGS 'UPDATEFLAGS='$"UPDATEFLAGS update
	}