Subject: bin/1733: usr.sbin/gspa/gspa/Makefile fix (build problem)
To: None <gnats-bugs@gnats.netbsd.org>
From: Ignatios Souvatzis <is@Beverly.Rhein.DE>
List: netbsd-bugs
Date: 11/06/1995 10:12:07
>Number: 1733
>Category: bin
>Synopsis: build used to break on this directories depend.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 6 05:20:01 1995
>Last-Modified:
>Originator: Ignatios Souvatzis
>Organization:
private
>Release: 951031
>Environment:
System: NetBSD beverly 1.1_ALPHA NetBSD 1.1_ALPHA (BEVERLY) #249: Wed Nov 1 22:37:36 MET 1995 is@beverly:/usr/src/sys/arch/amiga/compile/BEVERLY amiga
>Description:
make depend in usr.sbin/gspa/gspa would break, if the .c/.h files
from the yacc run were not present.
>How-To-Repeat:
make cleandir; make
>Fix:
Add a beforedepend: rule to the Makefile like this:
Index: Makefile
===================================================================
RCS file: /monster/cvs/src/usr.sbin/gspa/gspa/Makefile,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile
*** Makefile 1995/10/17 11:56:03 1.1.1.1
--- Makefile 1995/11/06 09:01:54
***************
*** 7,12 ****
gsp_inst.c gsp_pseu.c
OBJS+= gsp_gram.o
NOMAN= noman
! CLEANFILES= y.tab.h
.include <bsd.prog.mk>
--- 7,14 ----
gsp_inst.c gsp_pseu.c
OBJS+= gsp_gram.o
NOMAN= noman
! CLEANFILES += gsp_gram.c y.tab.h
!
! beforedepend: gsp_gram.c
.include <bsd.prog.mk>
>Audit-Trail:
>Unformatted:
Ignatios Souvatzis