Subject: make rules bug
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Christos Zoulas <christos@deshaw.com>
List: current-users
Date: 07/19/1994 17:22:35
The prog rules were supposed to work with shell scripts too, but they
don't anymore. Try making genclass in the libg++ subdirectory...

Here's a fix to the rules file:

*** bsd.prog.mk.dist	Thu Jul  7 04:22:10 1994
--- bsd.prog.mk	Tue Jul 19 17:18:34 1994
***************
*** 58,73 ****
  OBJS+=  ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
  .endif
  
! .if defined(DESTDIR)
  
  ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD}
  	${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib -L${DESTDIR}/usr/lib ${LIBCRT0} ${OBJS} ${LDADD} -lgcc -lc -lgcc
  
! .else
  
  ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD}
  	${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
  
  .endif
  
  .if	!defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
--- 58,77 ----
  OBJS+=  ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
  .endif
  
! SHSRCS ?= ${SRCS:M*.sh}
! 
! .if !empty(SHSRCS)
! .   if defined(DESTDIR)
  
  ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD}
  	${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib -L${DESTDIR}/usr/lib ${LIBCRT0} ${OBJS} ${LDADD} -lgcc -lc -lgcc
  
! .   else
  
  ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DPADD}
  	${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
  
+ .   endif
  .endif
  
  .if	!defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \


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