Subject: bin/7342: bsd.info.mk defines no `all' target when MKINFO=no
To: None <gnats-bugs@gnats.netbsd.org>
From: None <carton@ivy.net>
List: netbsd-bugs
Date: 04/08/1999 00:55:12
>Number:         7342
>Category:       bin
>Synopsis:       bsd.info.mk defines no `all' target when MKINFO=no
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr  8 00:05:00 1999
>Last-Modified:
>Originator:     Miles Nordin
>Organization:
-- 
Miles Nordin / 1-888-857-2723
555 Bryant Street #182 / Palo Alto, CA 94301-1700
>Release:        current-19990405
>Environment:
Reproduced on NetBSD-current on SPARC and Alpha, but almost certainly applies
to any port.
System: NetBSD frannie 1.4_ALPHA NetBSD 1.4_ALPHA (FRANNIE) #1: Tue Apr 6 18:00:33 MDT 1999 carton@frannie:/usr/src/sys/arch/alpha/compile/FRANNIE alpha


>Description:
	my build of the system failed with `don't know how to make all.' 
	in a directory that contained only an .info file and no other 
	sources (gnu/libexec/uucp/doc).  The Makefile includes bsd.info.mk, 
	and I was running the build with MKSHARE=no.
>How-To-Repeat:
$ cd gnu/libexec/uucp/doc
$ export MKINFO=no; make
make: don't know how to make all. Stop
>Fix:
I don't fully understand the BSD Makefile system, and since my build is 
still running, this fix may cause a problem elsewhere.  However, i am 
sure it is a very simple problem, so if i've made a mistake it's probably 
obvious.  if my build fails, i will ammend this bug report.  the build 
will finish within five days.

Index: bsd.info.mk
===================================================================
RCS file: /usr/cvsroot/netbsd/src/share/mk/bsd.info.mk,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- bsd.info.mk	1999/03/12 23:11:59	1.1.1.1
+++ bsd.info.mk	1999/04/08 06:32:26	1.2
@@ -37,16 +37,12 @@
 FILESNAME_${F}=	${F:T}
 .endfor
 
-.if ${MKINFO} != "no"
 all: ${INFOFILES}
-.else
-all:
-.endif
 
 cleaninfo:
 	rm -f ${INFOFILES}
 .else
-cleaninfo infoinstall:
+all cleaninfo infoinstall:
 .endif
 
 .include <bsd.files.mk>
>Audit-Trail:
>Unformatted: