Subject: kern/8232: usr.sbin/config/Makefile.boot doesn't cleanup flex output files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ac131313@cygnus.com>
List: netbsd-bugs
Date: 08/18/1999 19:05:41
>Number:         8232
>Category:       kern
>Synopsis:       usr.sbin/config/Makefile.boot doesn't cleanup flex output files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 18 19:05:00 1999
>Last-Modified:
>Originator:     Andrew Cagney
>Organization:
>Release:        Thu Aug 19 11:30:36 EST 1999
>Environment:
FreeBSD b1.cygnus.com 3.2-RELEASE FreeBSD 3.2-RELEASE #4: Tue Jun 29 15:55:17 EST 1999
root@b1.cygnus.com:/usr/src/sys/compile/B2pcm  i386


>Description:
The Makefile.boot for NetBSD's config doesn't clean up all the files
it creates.  It leaves:
	gram.c
	gram.h
around (both are outputs from flex).

>How-To-Repeat:
$  cd usr.sbin/config
$  make -f Makefile.boot
$  make -f Makefile.boot clean
$  cvs update
? gram.h
? gram.c
$  


>Fix:

Index: ./usr.sbin/config/Makefile.boot
===================================================================
RCS file: /cvsroot/syssrc/usr.sbin/config/Makefile.boot,v
retrieving revision 1.2
diff -p -r1.2 Makefile.boot
*** Makefile.boot       1999/04/02 06:36:30     1.2
--- Makefile.boot       1999/08/16 05:37:31
*************** lex.yy.o : gram.h
*** 48,52 ****
        ${CC} ${CFLAGS} -c $<
  
  clean:
!       rm -f *.o config lex.yy.c y.tab.[ch]
! 
--- 48,51 ----
        ${CC} ${CFLAGS} -c $<
  
  clean:
!       rm -f *.o config lex.yy.c y.tab.[ch] gram.c gram.h

>Audit-Trail:
>Unformatted: