Subject: Re: lib/310: genclass no longer runs
To: jason downs <downsj@csos.orst.edu>
From: Chris G. Demetriou <cgd@alpha.bostic.com>
List: netbsd-bugs
Date: 06/30/1994 02:36:20
> >> >Description:
> >> 	Recent Makefile changes prevent genclass (within libg++) from running,
> >> 	breaking c++ includes.
> >> >How-To-Repeat:
> >> 	Build libg++.
> >
> >Did you install the new makefile include files in /usr/src/share/mk?
> >They have been changed so support shell script programs.
> 
> to be a little more helpful:
> 
> # pwd
> /usr/src/gnu/lib/libg++/genclass
> # make
> make: don't know how to make .o. Stop

yup, this was a real live, bug.

i solved it with the following change:

diff -c -r1.44 bsd.prog.mk
*** 1.44        1994/06/30 05:31:21
--- bsd.prog.mk 1994/06/30 06:28:27
***************
*** 53,59 ****
--- 53,61 ----
  
  .if defined(PROG)
  SRCS?=        ${PROG}.c
+ .if !empty(SRCS:N*.h:N*.sh)
  OBJS+=  ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
+ .endif
  
  .if defined(LDONLY)
  

the problem should be obvious from the diff, and was diagnosed
by playing with "make -d v" for a couple of minutes.




chris

------------------------------------------------------------------------------