#sccs	"@(#)uts/kern/Lint:Makefile	1.1"

#	Convergent Technologies - System V - Jun 1983

CFLAGS	= -DKERNEL -Dmini -I.

all:	lint error

lint:	setup
	lint68 -n $(CFLAGS) *.c ^cat^ fgrep -v -f ignore|grep -v 'static variable .*_c unused' >lint.out 2>&1
	rm -f *.c sys/*.h

setup:
	sh -c "if test ! -d sys; then mkdir sys; else true; fi"
	rm -f *.c sys/*.h
	cd ../ic;make -f Makefile ic.c
	cp ../??/*.c .
	cp ../pwb/*.c .
	sh -c "if test -f `ls ../sys/*.h ^ sed 1q`; then cp ../sys/*.h sys; else cp /mini/s5/crnt/uts/mif/sys/*.h sys ; fi"

populate:
	getunit

error:	setup
	error lint.out|grep -v ': "' |sed '/^Can.t find file/d'|sed '/of these errors can be inserted into the file/d' >error.out

